Home
last modified time | relevance | path

Searched refs:SMax (Results 1 – 4 of 4) sorted by relevance

/external/llvm/lib/Support/
DConstantRange.cpp72 APInt SMax(CR.getSignedMax()); in makeICmpRegion() local
73 if (SMax.isMinSignedValue()) in makeICmpRegion()
75 return ConstantRange(APInt::getSignedMinValue(W), SMax); in makeICmpRegion()
84 APInt SMax(CR.getSignedMax()); in makeICmpRegion() local
85 if (SMax.isMaxSignedValue()) in makeICmpRegion()
87 return ConstantRange(APInt::getSignedMinValue(W), SMax + 1); in makeICmpRegion()
/external/llvm/unittests/Support/
DConstantRangeTest.cpp422 TEST_F(ConstantRangeTest, SMax) { in TEST_F() argument
505 ConstantRange SMax = ConstantRange(APInt::getSignedMaxValue(32)); in TEST() local
507 SMax).isEmptySet()); in TEST()
/external/llvm/lib/Analysis/
DScalarEvolution.cpp2423 while (const SCEVSMaxExpr *SMax = dyn_cast<SCEVSMaxExpr>(Ops[Idx])) { in getSMaxExpr() local
2425 Ops.append(SMax->op_begin(), SMax->op_end()); in getSMaxExpr()
3301 if (const SCEVSMaxExpr *SMax = dyn_cast<SCEVSMaxExpr>(S)) { in getUnsignedRange() local
3302 ConstantRange X = getUnsignedRange(SMax->getOperand(0)); in getUnsignedRange()
3303 for (unsigned i = 1, e = SMax->getNumOperands(); i != e; ++i) in getUnsignedRange()
3304 X = X.smax(getUnsignedRange(SMax->getOperand(i))); in getUnsignedRange()
3305 return setUnsignedRange(SMax, ConservativeResult.intersectWith(X)); in getUnsignedRange()
3442 if (const SCEVSMaxExpr *SMax = dyn_cast<SCEVSMaxExpr>(S)) { in getSignedRange() local
3443 ConstantRange X = getSignedRange(SMax->getOperand(0)); in getSignedRange()
3444 for (unsigned i = 1, e = SMax->getNumOperands(); i != e; ++i) in getSignedRange()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp747 ConstantInt *SMax = ConstantInt::get(X->getContext(), in FoldICmpAddOpCst() local
757 return new ICmpInst(ICmpInst::ICMP_SGT, X, ConstantExpr::getSub(SMax, CI)); in FoldICmpAddOpCst()
768 return new ICmpInst(ICmpInst::ICMP_SLT, X, ConstantExpr::getSub(SMax, C)); in FoldICmpAddOpCst()
2720 APFloat SMax(RHS.getSemantics(), APFloat::fcZero, false); in FoldFCmp_IntToFP_Cst() local
2721 SMax.convertFromAPInt(APInt::getSignedMaxValue(IntWidth), true, in FoldFCmp_IntToFP_Cst()
2723 if (SMax.compare(RHS) == APFloat::cmpLessThan) { // smax < 13123.0 in FoldFCmp_IntToFP_Cst()