Lines Matching refs:EndPoints

922 static bool tryMergeRange(SmallVectorImpl<ConstantInt *> &EndPoints,  in tryMergeRange()  argument
925 unsigned Size = EndPoints.size(); in tryMergeRange()
926 APInt LB = EndPoints[Size - 2]->getValue(); in tryMergeRange()
927 APInt LE = EndPoints[Size - 1]->getValue(); in tryMergeRange()
932 EndPoints[Size - 2] = in tryMergeRange()
934 EndPoints[Size - 1] = in tryMergeRange()
941 static void addRange(SmallVectorImpl<ConstantInt *> &EndPoints, in addRange() argument
943 if (!EndPoints.empty()) in addRange()
944 if (tryMergeRange(EndPoints, Low, High)) in addRange()
947 EndPoints.push_back(Low); in addRange()
948 EndPoints.push_back(High); in addRange()
964 SmallVector<ConstantInt *, 4> EndPoints; in getMostGenericRange() local
974 addRange(EndPoints, ALow, in getMostGenericRange()
978 addRange(EndPoints, BLow, in getMostGenericRange()
984 addRange(EndPoints, mdconst::extract<ConstantInt>(A->getOperand(2 * AI)), in getMostGenericRange()
989 addRange(EndPoints, mdconst::extract<ConstantInt>(B->getOperand(2 * BI)), in getMostGenericRange()
996 unsigned Size = EndPoints.size(); in getMostGenericRange()
998 ConstantInt *FB = EndPoints[0]; in getMostGenericRange()
999 ConstantInt *FE = EndPoints[1]; in getMostGenericRange()
1000 if (tryMergeRange(EndPoints, FB, FE)) { in getMostGenericRange()
1002 EndPoints[i] = EndPoints[i + 2]; in getMostGenericRange()
1004 EndPoints.resize(Size - 2); in getMostGenericRange()
1010 if (EndPoints.size() == 2) { in getMostGenericRange()
1011 ConstantRange Range(EndPoints[0]->getValue(), EndPoints[1]->getValue()); in getMostGenericRange()
1017 MDs.reserve(EndPoints.size()); in getMostGenericRange()
1018 for (auto *I : EndPoints) in getMostGenericRange()