/external/llvm/unittests/Transforms/Utils/ |
D | Cloning.cpp | 73 EXPECT_FALSE(AddClone->hasNoSignedWrap()); in TEST_F() 75 EXPECT_FALSE(SubClone->hasNoSignedWrap()); in TEST_F() 77 EXPECT_FALSE(MulClone->hasNoSignedWrap()); in TEST_F() 90 EXPECT_FALSE(AddClone->hasNoSignedWrap()); in TEST_F() 92 EXPECT_FALSE(SubClone->hasNoSignedWrap()); in TEST_F() 94 EXPECT_FALSE(MulClone->hasNoSignedWrap()); in TEST_F() 107 EXPECT_TRUE(AddClone->hasNoSignedWrap()); in TEST_F() 109 EXPECT_TRUE(SubClone->hasNoSignedWrap()); in TEST_F() 111 EXPECT_TRUE(MulClone->hasNoSignedWrap()); in TEST_F() 124 EXPECT_TRUE(AddClone->hasNoSignedWrap()); in TEST_F() [all …]
|
/external/llvm/unittests/IR/ |
D | IRBuilderTest.cpp | 215 cast<BinaryOperator>(Builder.CreateNSWAdd(V, V))->hasNoSignedWrap()); in TEST_F() 217 cast<BinaryOperator>(Builder.CreateNSWMul(V, V))->hasNoSignedWrap()); in TEST_F() 219 cast<BinaryOperator>(Builder.CreateNSWSub(V, V))->hasNoSignedWrap()); in TEST_F() 222 ->hasNoSignedWrap()); in TEST_F() 237 ->hasNoSignedWrap()); in TEST_F() 239 ->hasNoSignedWrap()); in TEST_F() 241 ->hasNoSignedWrap()); in TEST_F() 244 ->hasNoSignedWrap()); in TEST_F()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 184 if (I.hasNoSignedWrap()) in visitMul() 203 if (I.hasNoSignedWrap() && Mul->hasNoSignedWrap() && in visitMul() 224 if (I.hasNoSignedWrap() && NewCst->isNotMinSignedValue()) in visitMul() 285 if (I.hasNoSignedWrap() && in visitMul() 344 ShlNSW = cast<ShlOperator>(Op0)->hasNoSignedWrap(); in visitMul() 347 ShlNSW = cast<ShlOperator>(Op1)->hasNoSignedWrap(); in visitMul() 352 if (I.hasNoSignedWrap() && ShlNSW) in visitMul() 378 if (!I.hasNoSignedWrap() && WillNotOverflowSignedMul(Op0, Op1, I)) { in visitMul() 829 cast<OverflowingBinaryOperator>(LHS)->hasNoSignedWrap()); in commonIDivTransforms() 857 cast<OverflowingBinaryOperator>(LHS)->hasNoSignedWrap()); in commonIDivTransforms()
|
D | InstCombineAddSub.cpp | 1057 if (Value *V = SimplifyAddInst(LHS, RHS, I.hasNoSignedWrap(), in visitAdd() 1137 New->setHasNoSignedWrap(I.hasNoSignedWrap()); in visitAdd() 1295 New->setHasNoSignedWrap(I.hasNoSignedWrap()); in visitAdd() 1304 New->setHasNoSignedWrap(I.hasNoSignedWrap()); in visitAdd() 1313 if (!I.hasNoSignedWrap() && WillNotOverflowSignedAdd(LHS, RHS, I)) { in visitAdd() 1511 if (Value *V = SimplifySubInst(Op0, Op1, I.hasNoSignedWrap(), in visitSub() 1526 if (BO->hasNoSignedWrap() && I.hasNoSignedWrap()) in visitSub() 1529 if (cast<Constant>(Op1)->isNotMinSignedValue() && I.hasNoSignedWrap()) in visitSub() 1680 if (!I.hasNoSignedWrap() && WillNotOverflowSignedSub(Op0, Op1, I)) { in visitSub()
|
D | InstCombineShifts.cpp | 607 NewShl->setHasNoSignedWrap(I.hasNoSignedWrap()); in FoldShiftByConstant() 633 if (ShiftOp->hasNoSignedWrap()) { in FoldShiftByConstant() 681 if (ShiftOp->hasNoSignedWrap()) { in FoldShiftByConstant() 700 SimplifyShlInst(I.getOperand(0), I.getOperand(1), I.hasNoSignedWrap(), in visitShl() 720 if (!I.hasNoSignedWrap() && in visitShl()
|
D | InstCombinePHI.cpp | 39 isNSW = BO->hasNoSignedWrap(); in FoldPHIArgBinOpIntoPHI() 62 isNSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in FoldPHIArgBinOpIntoPHI() 426 isNSW = BO->hasNoSignedWrap(); in FoldPHIArgOpIntoPHI() 449 isNSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in FoldPHIArgOpIntoPHI()
|
D | InstructionCombining.cpp | 113 if (!OBO || !OBO->hasNoSignedWrap()) { in MaintainNoSignedWrap() 210 (!Op0 || (isa<BinaryOperator>(Op0) && Op0->hasNoSignedWrap()))) { in SimplifyAssociativeOrCommutative() 511 HasNSW = I.hasNoSignedWrap(); in tryFactorization() 515 HasNSW &= Op0->hasNoSignedWrap(); in tryFactorization() 519 HasNSW &= Op1->hasNoSignedWrap(); in tryFactorization() 1009 NoSignedWrap = BO->hasNoSignedWrap(); in Descale() 1048 NoSignedWrap = BO->hasNoSignedWrap(); in Descale() 1159 bool OpNoSignedWrap = BO->hasNoSignedWrap(); in Descale() 1191 NewBO->setHasNoSignedWrap(Inst.hasNoSignedWrap()); in CreateBinOpAsGiven()
|
D | InstCombineSimplifyDemanded.cpp | 51 if (OBO->hasNoSignedWrap() || OBO->hasNoUnsignedWrap()) { in ShrinkDemandedConstant() 656 if (IOp->hasNoSignedWrap()) in SimplifyDemandedUseBits() 936 New->setHasNoSignedWrap(Orig->hasNoSignedWrap()); in SimplifyShrShlDemandedBits()
|
D | InstCombineCompares.cpp | 1481 cast<BinaryOperator>(LHSI)->hasNoSignedWrap()) in visitICmpInstWithInstAndIntCst() 1582 if (cast<BinaryOperator>(LHSI)->hasNoSignedWrap() && RHSV == 0) in visitICmpInstWithInstAndIntCst() 1603 cast<BinaryOperator>(LHSI)->hasNoSignedWrap()) in visitICmpInstWithInstAndIntCst() 1862 if (RHSV == 0 && BO->hasNoSignedWrap()) { in visitICmpInstWithInstAndIntCst() 3245 (CmpInst::isSigned(Pred) && BO0->hasNoSignedWrap()); in visitICmpInst() 3249 (CmpInst::isSigned(Pred) && BO1->hasNoSignedWrap()); in visitICmpInst() 3482 bool NSW = BO0->hasNoSignedWrap() && BO1->hasNoSignedWrap(); in visitICmpInst()
|
D | InstCombineSelect.cpp | 265 BO->setHasNoSignedWrap(TVI_BO->hasNoSignedWrap()); in FoldSelectIntoOp() 300 BO->setHasNoSignedWrap(FVI_BO->hasNoSignedWrap()); in FoldSelectIntoOp()
|
D | InstCombineVectorOps.cpp | 698 New->setHasNoSignedWrap(BO->hasNoSignedWrap()); in BuildNew()
|
/external/llvm/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 102 BinOp->hasNoSignedWrap() * OverflowingBinaryOperator::NoSignedWrap | in getHashValue() 171 LHSBinOp->hasNoSignedWrap() != RHSBinOp->hasNoSignedWrap()) in isEqual()
|
D | BDCE.cpp | 164 if (S->hasNoSignedWrap()) in determineLiveOperandBits()
|
D | SeparateConstOffsetFromGEP.cpp | 438 if (SignExtended && !BO->hasNoSignedWrap()) in CanTraceInto()
|
D | IndVarSimplify.cpp | 849 if (OBO->hasNoSignedWrap()) WideBO->setHasNoSignedWrap(); in CloneIVUser() 889 if (IsSigned && OBO->hasNoSignedWrap()) in GetExtendedOperandRecurrence()
|
D | GVN.cpp | 1788 if (ReplOp->hasNoSignedWrap() && !Op->hasNoSignedWrap()) in patchReplacementInstruction()
|
/external/llvm/lib/Analysis/ |
D | PHITransAddr.cpp | 264 bool isNSW = cast<BinaryOperator>(Inst)->hasNoSignedWrap(); in PHITranslateSubExpr() 431 Res->setHasNoSignedWrap(cast<BinaryOperator>(Inst)->hasNoSignedWrap()); in InsertPHITranslatedSubExpr()
|
D | InstructionSimplify.cpp | 1040 if ((isSigned && Mul->hasNoSignedWrap()) || in SimplifyDiv() 1511 bool isNSW = AddInst->hasNoSignedWrap(); in SimplifyAndOfICmps() 1670 bool isNSW = AddInst->hasNoSignedWrap(); in SimplifyOrOfICmps() 2530 (CmpInst::isSigned(Pred) && LBO->hasNoSignedWrap()); in SimplifyICmpInst() 2536 (CmpInst::isSigned(Pred) && RBO->hasNoSignedWrap()); in SimplifyICmpInst() 2726 if (LBO->hasNoSignedWrap() || LBO->hasNoUnsignedWrap() || in SimplifyICmpInst() 2762 bool NSW = LBO->hasNoSignedWrap() && RBO->hasNoSignedWrap(); in SimplifyICmpInst() 3646 cast<BinaryOperator>(I)->hasNoSignedWrap(), in SimplifyInstruction() 3656 cast<BinaryOperator>(I)->hasNoSignedWrap(), in SimplifyInstruction() 3694 cast<BinaryOperator>(I)->hasNoSignedWrap(), in SimplifyInstruction()
|
D | ValueTracking.cpp | 1103 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in computeKnownBits() 1237 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in computeKnownBits() 1244 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in computeKnownBits() 1586 if (OrZero || VOBO->hasNoUnsignedWrap() || VOBO->hasNoSignedWrap()) { in isKnownToBeAPowerOfTwo() 1833 if ((BO->hasNoSignedWrap() || BO->hasNoUnsignedWrap()) && in isKnownNonZero()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 274 if (BO->hasNoUnsignedWrap() && BO->hasNoSignedWrap()) in strengthenOverflowingOperation() 316 if (!BO->hasNoSignedWrap()) { in strengthenOverflowingOperation()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64AddressTypePromotion.cpp | 161 (BinOp->hasNoUnsignedWrap() || BinOp->hasNoSignedWrap())) in canGetThrough()
|
/external/llvm/include/llvm/IR/ |
D | Operator.h | 103 bool hasNoSignedWrap() const { in hasNoSignedWrap() function
|
D | InstrTypes.h | 346 bool hasNoSignedWrap() const;
|
D | PatternMatch.h | 558 !Op->hasNoSignedWrap()) in match()
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 1920 bool BinaryOperator::hasNoSignedWrap() const { in hasNoSignedWrap() function in BinaryOperator 1921 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); in hasNoSignedWrap() 1931 setHasNoSignedWrap(OB->hasNoSignedWrap()); in copyIRFlags() 1946 setHasNoSignedWrap(hasNoSignedWrap() & OB->hasNoSignedWrap()); in andIRFlags()
|