Home
last modified time | relevance | path

Searched refs:hasNoUnsignedWrap (Results 1 – 19 of 19) sorted by relevance

/external/llvm/unittests/Transforms/Utils/
DCloning.cpp64 EXPECT_FALSE(AddClone->hasNoUnsignedWrap()); in TEST_F()
66 EXPECT_FALSE(SubClone->hasNoUnsignedWrap()); in TEST_F()
68 EXPECT_FALSE(MulClone->hasNoUnsignedWrap()); in TEST_F()
81 EXPECT_TRUE(AddClone->hasNoUnsignedWrap()); in TEST_F()
83 EXPECT_TRUE(SubClone->hasNoUnsignedWrap()); in TEST_F()
85 EXPECT_TRUE(MulClone->hasNoUnsignedWrap()); in TEST_F()
98 EXPECT_TRUE(AddClone->hasNoUnsignedWrap()); in TEST_F()
100 EXPECT_TRUE(SubClone->hasNoUnsignedWrap()); in TEST_F()
102 EXPECT_TRUE(MulClone->hasNoUnsignedWrap()); in TEST_F()
115 EXPECT_FALSE(AddClone->hasNoUnsignedWrap()); in TEST_F()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp584 NewShl->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in FoldShiftByConstant()
600 if (ShiftOp->hasNoUnsignedWrap()) { in FoldShiftByConstant()
652 if (ShiftOp->hasNoUnsignedWrap()) { in FoldShiftByConstant()
686 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), in visitShl()
697 if (!I.hasNoUnsignedWrap() && in visitShl()
DInstCombineAddSub.cpp91 I.hasNoUnsignedWrap(), TD)) in visitAdd()
166 New->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in visitAdd()
544 I.hasNoUnsignedWrap(), TD)) in visitSub()
555 Res->setHasNoUnsignedWrap(I.hasNoUnsignedWrap()); in visitSub()
DInstCombinePHI.cpp37 isNUW = BO->hasNoUnsignedWrap(); in FoldPHIArgBinOpIntoPHI()
59 isNUW = cast<OverflowingBinaryOperator>(I)->hasNoUnsignedWrap(); in FoldPHIArgBinOpIntoPHI()
425 isNUW = BO->hasNoUnsignedWrap(); in FoldPHIArgOpIntoPHI()
447 isNUW = cast<OverflowingBinaryOperator>(I)->hasNoUnsignedWrap(); in FoldPHIArgOpIntoPHI()
DInstCombineMulDivRem.cpp62 if (I->getOpcode() == Instruction::Shl && !I->hasNoUnsignedWrap()) { in simplifyValueKnownNonZero()
126 if (I.hasNoUnsignedWrap()) Shl->setHasNoUnsignedWrap(); in visitMul()
DInstCombineSelect.cpp233 BO->setHasNoUnsignedWrap(TVI_BO->hasNoUnsignedWrap()); in FoldSelectIntoOp()
268 BO->setHasNoUnsignedWrap(FVI_BO->hasNoUnsignedWrap()); in FoldSelectIntoOp()
DInstCombineCompares.cpp1292 if (cast<BinaryOperator>(LHSI)->hasNoUnsignedWrap()) in visitICmpInstWithInstAndIntCst()
2327 (CmpInst::isUnsigned(Pred) && BO0->hasNoUnsignedWrap()) || in visitICmpInst()
2331 (CmpInst::isUnsigned(Pred) && BO1->hasNoUnsignedWrap()) || in visitICmpInst()
2482 bool NUW = BO0->hasNoUnsignedWrap() && BO1->hasNoUnsignedWrap(); in visitICmpInst()
DInstCombineSimplifyDemanded.cpp590 else if (IOp->hasNoUnsignedWrap()) in SimplifyDemandedUseBits()
DInstCombineCasts.cpp37 if (OBI && !OBI->hasNoUnsignedWrap()) { in DecomposeSimpleLinearExpr()
/external/llvm/lib/Analysis/
DPHITransAddr.cpp265 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap(); in PHITranslateSubExpr()
434 Res->setHasNoUnsignedWrap(cast<BinaryOperator>(Inst)->hasNoUnsignedWrap()); in InsertPHITranslatedSubExpr()
DInstructionSimplify.cpp1004 (!isSigned && Mul->hasNoUnsignedWrap())) in SimplifyDiv()
1271 cast<OverflowingBinaryOperator>(Op0)->hasNoUnsignedWrap()) in SimplifyLShrInst()
2034 (CmpInst::isUnsigned(Pred) && LBO->hasNoUnsignedWrap()) || in SimplifyICmpInst()
2040 (CmpInst::isUnsigned(Pred) && RBO->hasNoUnsignedWrap()) || in SimplifyICmpInst()
2151 bool NUW = LBO->hasNoUnsignedWrap() && RBO->hasNoUnsignedWrap(); in SimplifyICmpInst()
2770 cast<BinaryOperator>(I)->hasNoUnsignedWrap(), in SimplifyInstruction()
2776 cast<BinaryOperator>(I)->hasNoUnsignedWrap(), in SimplifyInstruction()
2803 cast<BinaryOperator>(I)->hasNoUnsignedWrap(), in SimplifyInstruction()
DValueTracking.cpp893 if (BO->hasNoUnsignedWrap()) in isKnownNonZero()
961 if ((BO->hasNoSignedWrap() || BO->hasNoUnsignedWrap()) && in isKnownNonZero()
DScalarEvolution.cpp3062 if (OBO->hasNoUnsignedWrap()) in createNodeForPHI()
/external/llvm/include/llvm/
DOperator.h96 bool hasNoUnsignedWrap() const { in hasNoUnsignedWrap() function
DInstrTypes.h355 bool hasNoUnsignedWrap() const;
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp780 if (OBO->hasNoUnsignedWrap()) WideBO->setHasNoUnsignedWrap(); in CloneIVUser()
807 else if(!IsSigned && OBO->hasNoUnsignedWrap()) in GetExtendedOperandRecurrence()
/external/llvm/lib/VMCore/
DInstructions.cpp1993 bool BinaryOperator::hasNoUnsignedWrap() const { in hasNoUnsignedWrap() function in BinaryOperator
1994 return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap(); in hasNoUnsignedWrap()
DAsmWriter.cpp683 if (OBO->hasNoUnsignedWrap()) in WriteOptimizationInfo()
/external/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp549 if (OBO->hasNoUnsignedWrap()) in GetOptimizationFlags()