Lines Matching refs:PredCases

660   std::vector<ValueEqualityComparisonCase> PredCases;  in SimplifyEqualityComparisonWithOnlyPredecessor()  local
662 PredCases); in SimplifyEqualityComparisonWithOnlyPredecessor()
663 EliminateBlockCases(PredDef, PredCases); // Remove default from cases. in SimplifyEqualityComparisonWithOnlyPredecessor()
676 if (!ValuesOverlap(PredCases, ThisCases)) in SimplifyEqualityComparisonWithOnlyPredecessor()
700 for (unsigned i = 0, e = PredCases.size(); i != e; ++i) in SimplifyEqualityComparisonWithOnlyPredecessor()
701 DeadCases.insert(PredCases[i].Value); in SimplifyEqualityComparisonWithOnlyPredecessor()
740 for (unsigned i = 0, e = PredCases.size(); i != e; ++i) in SimplifyEqualityComparisonWithOnlyPredecessor()
741 if (PredCases[i].Dest == TIBB) { in SimplifyEqualityComparisonWithOnlyPredecessor()
744 TIV = PredCases[i].Value; in SimplifyEqualityComparisonWithOnlyPredecessor()
867 std::vector<ValueEqualityComparisonCase> PredCases; in FoldValueComparisonIntoPredecessors() local
868 BasicBlock *PredDefault = GetValueEqualityComparisonCases(PTI, PredCases); in FoldValueComparisonIntoPredecessors()
883 if (Weights.size() != 1 + PredCases.size()) in FoldValueComparisonIntoPredecessors()
889 Weights.assign(1 + PredCases.size(), 1); in FoldValueComparisonIntoPredecessors()
904 for (unsigned i = 0, e = PredCases.size(); i != e; ++i) in FoldValueComparisonIntoPredecessors()
905 if (PredCases[i].Dest != BB) in FoldValueComparisonIntoPredecessors()
906 PTIHandled.insert(PredCases[i].Value); in FoldValueComparisonIntoPredecessors()
909 std::swap(PredCases[i], PredCases.back()); in FoldValueComparisonIntoPredecessors()
918 PredCases.pop_back(); in FoldValueComparisonIntoPredecessors()
934 PredCases.push_back(BBCases[i]); in FoldValueComparisonIntoPredecessors()
959 for (unsigned i = 0, e = PredCases.size(); i != e; ++i) in FoldValueComparisonIntoPredecessors()
960 if (PredCases[i].Dest == BB) { in FoldValueComparisonIntoPredecessors()
961 PTIHandled.insert(PredCases[i].Value); in FoldValueComparisonIntoPredecessors()
964 WeightsForHandled[PredCases[i].Value] = Weights[i+1]; in FoldValueComparisonIntoPredecessors()
969 std::swap(PredCases[i], PredCases.back()); in FoldValueComparisonIntoPredecessors()
970 PredCases.pop_back(); in FoldValueComparisonIntoPredecessors()
981 PredCases.push_back(BBCases[i]); in FoldValueComparisonIntoPredecessors()
993 PredCases.push_back(ValueEqualityComparisonCase(*I, BBDefault)); in FoldValueComparisonIntoPredecessors()
1013 PredCases.size()); in FoldValueComparisonIntoPredecessors()
1015 for (ValueEqualityComparisonCase &V : PredCases) in FoldValueComparisonIntoPredecessors()