Lines Matching refs:BBCases
864 std::vector<ValueEqualityComparisonCase> BBCases; in FoldValueComparisonIntoPredecessors() local
865 BasicBlock *BBDefault = GetValueEqualityComparisonCases(TI, BBCases); in FoldValueComparisonIntoPredecessors()
895 if (SuccWeights.size() != 1 + BBCases.size()) in FoldValueComparisonIntoPredecessors()
898 SuccWeights.assign(1 + BBCases.size(), 1); in FoldValueComparisonIntoPredecessors()
931 for (unsigned i = 0, e = BBCases.size(); i != e; ++i) in FoldValueComparisonIntoPredecessors()
932 if (!PTIHandled.count(BBCases[i].Value) && in FoldValueComparisonIntoPredecessors()
933 BBCases[i].Dest != BBDefault) { in FoldValueComparisonIntoPredecessors()
934 PredCases.push_back(BBCases[i]); in FoldValueComparisonIntoPredecessors()
935 NewSuccessors.push_back(BBCases[i].Dest); in FoldValueComparisonIntoPredecessors()
976 for (unsigned i = 0, e = BBCases.size(); i != e; ++i) in FoldValueComparisonIntoPredecessors()
977 if (PTIHandled.count(BBCases[i].Value)) { in FoldValueComparisonIntoPredecessors()
980 Weights.push_back(WeightsForHandled[BBCases[i].Value]); in FoldValueComparisonIntoPredecessors()
981 PredCases.push_back(BBCases[i]); in FoldValueComparisonIntoPredecessors()
982 NewSuccessors.push_back(BBCases[i].Dest); in FoldValueComparisonIntoPredecessors()
983 PTIHandled.erase(BBCases[i].Value);// This constant is taken care of in FoldValueComparisonIntoPredecessors()