Lines Matching refs:EndPoints

1249 static bool tryMergeRange(SmallVectorImpl<ConstantInt *> &EndPoints,  in tryMergeRange()  argument
1252 unsigned Size = EndPoints.size(); in tryMergeRange()
1253 APInt LB = EndPoints[Size - 2]->getValue(); in tryMergeRange()
1254 APInt LE = EndPoints[Size - 1]->getValue(); in tryMergeRange()
1259 EndPoints[Size - 2] = in tryMergeRange()
1261 EndPoints[Size - 1] = in tryMergeRange()
1268 static void addRange(SmallVectorImpl<ConstantInt *> &EndPoints, in addRange() argument
1270 if (!EndPoints.empty()) in addRange()
1271 if (tryMergeRange(EndPoints, Low, High)) in addRange()
1274 EndPoints.push_back(Low); in addRange()
1275 EndPoints.push_back(High); in addRange()
1291 SmallVector<ConstantInt *, 4> EndPoints; in getMostGenericRange() local
1301 addRange(EndPoints, ALow, in getMostGenericRange()
1305 addRange(EndPoints, BLow, in getMostGenericRange()
1311 addRange(EndPoints, mdconst::extract<ConstantInt>(A->getOperand(2 * AI)), in getMostGenericRange()
1316 addRange(EndPoints, mdconst::extract<ConstantInt>(B->getOperand(2 * BI)), in getMostGenericRange()
1324 unsigned Size = EndPoints.size(); in getMostGenericRange()
1326 ConstantInt *FB = EndPoints[0]; in getMostGenericRange()
1327 ConstantInt *FE = EndPoints[1]; in getMostGenericRange()
1328 if (tryMergeRange(EndPoints, FB, FE)) { in getMostGenericRange()
1330 EndPoints[i] = EndPoints[i + 2]; in getMostGenericRange()
1332 EndPoints.resize(Size - 2); in getMostGenericRange()
1338 if (EndPoints.size() == 2) { in getMostGenericRange()
1339 ConstantRange Range(EndPoints[0]->getValue(), EndPoints[1]->getValue()); in getMostGenericRange()
1345 MDs.reserve(EndPoints.size()); in getMostGenericRange()
1346 for (auto *I : EndPoints) in getMostGenericRange()