Searched refs:SMax (Results 1 – 6 of 6) sorted by relevance
/external/llvm/lib/IR/ |
D | ConstantRange.cpp | 76 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion() local 77 if (SMax.isMinSignedValue()) in makeAllowedICmpRegion() 79 return ConstantRange(APInt::getSignedMinValue(W), SMax); in makeAllowedICmpRegion() 88 APInt SMax(CR.getSignedMax()); in makeAllowedICmpRegion() local 89 if (SMax.isMaxSignedValue()) in makeAllowedICmpRegion() 91 return ConstantRange(APInt::getSignedMinValue(W), SMax + 1); in makeAllowedICmpRegion()
|
/external/llvm/lib/Transforms/Scalar/ |
D | Float2Int.cpp | 218 APInt SMax = APInt::getSignedMaxValue(BW).sextOrSelf(MaxIntegerBW+1); in walkBackwards() local 219 seen(I, validateRange(ConstantRange(SMin, SMax))); in walkBackwards()
|
D | InductiveRangeCheckElimination.cpp | 638 APInt SMax = in CanBeSMax() local 640 return SE.getSignedRange(S).contains(SMax) && in CanBeSMax() 641 SE.getUnsignedRange(S).contains(SMax); in CanBeSMax()
|
/external/llvm/unittests/IR/ |
D | ConstantRangeTest.cpp | 432 TEST_F(ConstantRangeTest, SMax) { in TEST_F() argument 515 ConstantRange SMax = ConstantRange(APInt::getSignedMaxValue(32)); in TEST() local 516 EXPECT_TRUE(ConstantRange::makeAllowedICmpRegion(ICmpInst::ICMP_SGT, SMax) in TEST()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 834 ConstantInt *SMax = ConstantInt::get(X->getContext(), in FoldICmpAddOpCst() local 844 return new ICmpInst(ICmpInst::ICMP_SGT, X, ConstantExpr::getSub(SMax, CI)); in FoldICmpAddOpCst() 855 return new ICmpInst(ICmpInst::ICMP_SLT, X, ConstantExpr::getSub(SMax, C)); in FoldICmpAddOpCst() 3950 APFloat SMax(RHS.getSemantics()); in FoldFCmp_IntToFP_Cst() local 3951 SMax.convertFromAPInt(APInt::getSignedMaxValue(IntWidth), true, in FoldFCmp_IntToFP_Cst() 3953 if (SMax.compare(RHS) == APFloat::cmpLessThan) { // smax < 13123.0 in FoldFCmp_IntToFP_Cst()
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 3044 while (const SCEVSMaxExpr *SMax = dyn_cast<SCEVSMaxExpr>(Ops[Idx])) { in getSMaxExpr() local 3046 Ops.append(SMax->op_begin(), SMax->op_end()); in getSMaxExpr() 4243 if (const SCEVSMaxExpr *SMax = dyn_cast<SCEVSMaxExpr>(S)) { in getRange() local 4244 ConstantRange X = getRange(SMax->getOperand(0), SignHint); in getRange() 4245 for (unsigned i = 1, e = SMax->getNumOperands(); i != e; ++i) in getRange() 4246 X = X.smax(getRange(SMax->getOperand(i), SignHint)); in getRange() 4247 return setRange(SMax, SignHint, ConservativeResult.intersectWith(X)); in getRange()
|