Lines Matching refs:EndPoints

828 static bool tryMergeRange(SmallVectorImpl<ConstantInt *> &EndPoints,  in tryMergeRange()  argument
831 unsigned Size = EndPoints.size(); in tryMergeRange()
832 APInt LB = EndPoints[Size - 2]->getValue(); in tryMergeRange()
833 APInt LE = EndPoints[Size - 1]->getValue(); in tryMergeRange()
838 EndPoints[Size - 2] = in tryMergeRange()
840 EndPoints[Size - 1] = in tryMergeRange()
847 static void addRange(SmallVectorImpl<ConstantInt *> &EndPoints, in addRange() argument
849 if (!EndPoints.empty()) in addRange()
850 if (tryMergeRange(EndPoints, Low, High)) in addRange()
853 EndPoints.push_back(Low); in addRange()
854 EndPoints.push_back(High); in addRange()
870 SmallVector<ConstantInt *, 4> EndPoints; in getMostGenericRange() local
880 addRange(EndPoints, ALow, in getMostGenericRange()
884 addRange(EndPoints, BLow, in getMostGenericRange()
890 addRange(EndPoints, mdconst::extract<ConstantInt>(A->getOperand(2 * AI)), in getMostGenericRange()
895 addRange(EndPoints, mdconst::extract<ConstantInt>(B->getOperand(2 * BI)), in getMostGenericRange()
902 unsigned Size = EndPoints.size(); in getMostGenericRange()
904 ConstantInt *FB = EndPoints[0]; in getMostGenericRange()
905 ConstantInt *FE = EndPoints[1]; in getMostGenericRange()
906 if (tryMergeRange(EndPoints, FB, FE)) { in getMostGenericRange()
908 EndPoints[i] = EndPoints[i + 2]; in getMostGenericRange()
910 EndPoints.resize(Size - 2); in getMostGenericRange()
916 if (EndPoints.size() == 2) { in getMostGenericRange()
917 ConstantRange Range(EndPoints[0]->getValue(), EndPoints[1]->getValue()); in getMostGenericRange()
923 MDs.reserve(EndPoints.size()); in getMostGenericRange()
924 for (auto *I : EndPoints) in getMostGenericRange()