Searched refs:hasNoSignedWrap (Results 1 – 18 of 18) sorted by relevance
/external/llvm/unittests/Transforms/Utils/ |
D | Cloning.cpp | 63 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/ |
D | InstCombineAddSub.cpp | 90 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()
|
D | InstCombinePHI.cpp | 38 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()
|
D | InstCombineShifts.cpp | 622 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), in visitShl() 641 if (!I.hasNoSignedWrap() && in visitShl() 717 if (cast<OverflowingBinaryOperator>(Op0)->hasNoSignedWrap()) in visitAShr()
|
D | InstCombineMulDivRem.cpp | 125 if (I.hasNoSignedWrap()) Shl->setHasNoSignedWrap(); in visitMul() 529 if (match(Sub->getOperand(0), m_Zero()) && Sub->hasNoSignedWrap()) in visitSDiv()
|
D | InstCombineSelect.cpp | 234 BO->setHasNoSignedWrap(TVI_BO->hasNoSignedWrap()); in FoldSelectIntoOp() 269 BO->setHasNoSignedWrap(FVI_BO->hasNoSignedWrap()); in FoldSelectIntoOp()
|
D | InstCombineCompares.cpp | 2275 (CmpInst::isSigned(Pred) && BO0->hasNoSignedWrap()); in visitICmpInst() 2279 (CmpInst::isSigned(Pred) && BO1->hasNoSignedWrap()); in visitICmpInst() 2430 bool NSW = BO0->hasNoSignedWrap() && BO1->hasNoSignedWrap(); in visitICmpInst()
|
D | InstCombineSimplifyDemanded.cpp | 584 if (IOp->hasNoSignedWrap()) in SimplifyDemandedUseBits()
|
/external/llvm/lib/Analysis/ |
D | PHITransAddr.cpp | 265 bool isNSW = cast<BinaryOperator>(Inst)->hasNoSignedWrap(); in PHITranslateSubExpr() 434 Res->setHasNoSignedWrap(cast<BinaryOperator>(Inst)->hasNoSignedWrap()); in InsertPHITranslatedSubExpr()
|
D | InstructionSimplify.cpp | 827 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()
|
D | ValueTracking.cpp | 446 if (OBO->hasNoSignedWrap()) { in ComputeMaskedBits()
|
D | ScalarEvolution.cpp | 2950 if (OBO->hasNoSignedWrap()) in createNodeForPHI()
|
/external/llvm/include/llvm/ |
D | Operator.h | 101 bool hasNoSignedWrap() const { in hasNoSignedWrap() function
|
D | InstrTypes.h | 358 bool hasNoSignedWrap() const;
|
/external/llvm/lib/VMCore/ |
D | Instructions.cpp | 1714 bool BinaryOperator::hasNoSignedWrap() const { in hasNoSignedWrap() function in BinaryOperator 1715 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); in hasNoSignedWrap()
|
D | AsmWriter.cpp | 667 if (OBO->hasNoSignedWrap()) in WriteOptimizationInfo()
|
/external/llvm/lib/Transforms/Scalar/ |
D | IndVarSimplify.cpp | 924 if (OBO->hasNoSignedWrap()) WideBO->setHasNoSignedWrap(); in CloneIVUser()
|
/external/llvm/lib/Bitcode/Writer/ |
D | BitcodeWriter.cpp | 501 if (OBO->hasNoSignedWrap()) in GetOptimizationFlags()
|