Home
last modified time | relevance | path

Searched refs:hasNoSignedWrap (Results 1 – 18 of 18) sorted by relevance

/external/llvm/unittests/Transforms/Utils/
DCloning.cpp63 EXPECT_FALSE(AddClone->hasNoSignedWrap()); in TEST_F()
65 EXPECT_FALSE(SubClone->hasNoSignedWrap()); in TEST_F()
67 EXPECT_FALSE(MulClone->hasNoSignedWrap()); in TEST_F()
80 EXPECT_FALSE(AddClone->hasNoSignedWrap()); in TEST_F()
82 EXPECT_FALSE(SubClone->hasNoSignedWrap()); in TEST_F()
84 EXPECT_FALSE(MulClone->hasNoSignedWrap()); in TEST_F()
97 EXPECT_TRUE(AddClone->hasNoSignedWrap()); in TEST_F()
99 EXPECT_TRUE(SubClone->hasNoSignedWrap()); in TEST_F()
101 EXPECT_TRUE(MulClone->hasNoSignedWrap()); in TEST_F()
114 EXPECT_TRUE(AddClone->hasNoSignedWrap()); in TEST_F()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp90 if (Value *V = SimplifyAddInst(LHS, RHS, I.hasNoSignedWrap(), in visitAdd()
153 New->setHasNoSignedWrap(I.hasNoSignedWrap()); in visitAdd()
532 if (Value *V = SimplifySubInst(Op0, Op1, I.hasNoSignedWrap(), in visitSub()
543 Res->setHasNoSignedWrap(I.hasNoSignedWrap()); in visitSub()
DInstCombinePHI.cpp38 isNSW = BO->hasNoSignedWrap(); in FoldPHIArgBinOpIntoPHI()
61 isNSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in FoldPHIArgBinOpIntoPHI()
422 isNSW = BO->hasNoSignedWrap(); in FoldPHIArgOpIntoPHI()
445 isNSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in FoldPHIArgOpIntoPHI()
DInstCombineShifts.cpp622 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), in visitShl()
641 if (!I.hasNoSignedWrap() && in visitShl()
717 if (cast<OverflowingBinaryOperator>(Op0)->hasNoSignedWrap()) in visitAShr()
DInstCombineMulDivRem.cpp125 if (I.hasNoSignedWrap()) Shl->setHasNoSignedWrap(); in visitMul()
529 if (match(Sub->getOperand(0), m_Zero()) && Sub->hasNoSignedWrap()) in visitSDiv()
DInstCombineSelect.cpp234 BO->setHasNoSignedWrap(TVI_BO->hasNoSignedWrap()); in FoldSelectIntoOp()
269 BO->setHasNoSignedWrap(FVI_BO->hasNoSignedWrap()); in FoldSelectIntoOp()
DInstCombineCompares.cpp2275 (CmpInst::isSigned(Pred) && BO0->hasNoSignedWrap()); in visitICmpInst()
2279 (CmpInst::isSigned(Pred) && BO1->hasNoSignedWrap()); in visitICmpInst()
2430 bool NSW = BO0->hasNoSignedWrap() && BO1->hasNoSignedWrap(); in visitICmpInst()
DInstCombineSimplifyDemanded.cpp584 if (IOp->hasNoSignedWrap()) in SimplifyDemandedUseBits()
/external/llvm/lib/Analysis/
DPHITransAddr.cpp265 bool isNSW = cast<BinaryOperator>(Inst)->hasNoSignedWrap(); in PHITranslateSubExpr()
434 Res->setHasNoSignedWrap(cast<BinaryOperator>(Inst)->hasNoSignedWrap()); in InsertPHITranslatedSubExpr()
DInstructionSimplify.cpp827 if ((isSigned && Mul->hasNoSignedWrap()) || in SimplifyDiv()
1122 cast<OverflowingBinaryOperator>(Op0)->hasNoSignedWrap()) in SimplifyAShrInst()
1766 (CmpInst::isSigned(Pred) && LBO->hasNoSignedWrap()); in SimplifyICmpInst()
1772 (CmpInst::isSigned(Pred) && RBO->hasNoSignedWrap()); in SimplifyICmpInst()
1878 bool NSW = LBO->hasNoSignedWrap() && RBO->hasNoSignedWrap(); in SimplifyICmpInst()
2390 cast<BinaryOperator>(I)->hasNoSignedWrap(), in SimplifyInstruction()
2396 cast<BinaryOperator>(I)->hasNoSignedWrap(), in SimplifyInstruction()
2423 cast<BinaryOperator>(I)->hasNoSignedWrap(), in SimplifyInstruction()
DValueTracking.cpp446 if (OBO->hasNoSignedWrap()) { in ComputeMaskedBits()
DScalarEvolution.cpp2950 if (OBO->hasNoSignedWrap()) in createNodeForPHI()
/external/llvm/include/llvm/
DOperator.h101 bool hasNoSignedWrap() const { in hasNoSignedWrap() function
DInstrTypes.h358 bool hasNoSignedWrap() const;
/external/llvm/lib/VMCore/
DInstructions.cpp1714 bool BinaryOperator::hasNoSignedWrap() const { in hasNoSignedWrap() function in BinaryOperator
1715 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); in hasNoSignedWrap()
DAsmWriter.cpp667 if (OBO->hasNoSignedWrap()) in WriteOptimizationInfo()
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp924 if (OBO->hasNoSignedWrap()) WideBO->setHasNoSignedWrap(); in CloneIVUser()
/external/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp501 if (OBO->hasNoSignedWrap()) in GetOptimizationFlags()