Home
last modified time | relevance | path

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

12

/external/llvm/unittests/Transforms/Utils/
DCloning.cpp73 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/
DIRBuilderTest.cpp215 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/
DInstCombineMulDivRem.cpp184 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()
DInstCombineAddSub.cpp1057 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()
DInstCombineShifts.cpp607 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()
DInstCombinePHI.cpp39 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()
DInstructionCombining.cpp113 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()
DInstCombineSimplifyDemanded.cpp51 if (OBO->hasNoSignedWrap() || OBO->hasNoUnsignedWrap()) { in ShrinkDemandedConstant()
656 if (IOp->hasNoSignedWrap()) in SimplifyDemandedUseBits()
936 New->setHasNoSignedWrap(Orig->hasNoSignedWrap()); in SimplifyShrShlDemandedBits()
DInstCombineCompares.cpp1481 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()
DInstCombineSelect.cpp265 BO->setHasNoSignedWrap(TVI_BO->hasNoSignedWrap()); in FoldSelectIntoOp()
300 BO->setHasNoSignedWrap(FVI_BO->hasNoSignedWrap()); in FoldSelectIntoOp()
DInstCombineVectorOps.cpp698 New->setHasNoSignedWrap(BO->hasNoSignedWrap()); in BuildNew()
/external/llvm/lib/Transforms/Scalar/
DEarlyCSE.cpp102 BinOp->hasNoSignedWrap() * OverflowingBinaryOperator::NoSignedWrap | in getHashValue()
171 LHSBinOp->hasNoSignedWrap() != RHSBinOp->hasNoSignedWrap()) in isEqual()
DBDCE.cpp164 if (S->hasNoSignedWrap()) in determineLiveOperandBits()
DSeparateConstOffsetFromGEP.cpp438 if (SignExtended && !BO->hasNoSignedWrap()) in CanTraceInto()
DIndVarSimplify.cpp849 if (OBO->hasNoSignedWrap()) WideBO->setHasNoSignedWrap(); in CloneIVUser()
889 if (IsSigned && OBO->hasNoSignedWrap()) in GetExtendedOperandRecurrence()
DGVN.cpp1788 if (ReplOp->hasNoSignedWrap() && !Op->hasNoSignedWrap()) in patchReplacementInstruction()
/external/llvm/lib/Analysis/
DPHITransAddr.cpp264 bool isNSW = cast<BinaryOperator>(Inst)->hasNoSignedWrap(); in PHITranslateSubExpr()
431 Res->setHasNoSignedWrap(cast<BinaryOperator>(Inst)->hasNoSignedWrap()); in InsertPHITranslatedSubExpr()
DInstructionSimplify.cpp1040 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()
DValueTracking.cpp1103 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/
DSimplifyIndVar.cpp274 if (BO->hasNoUnsignedWrap() && BO->hasNoSignedWrap()) in strengthenOverflowingOperation()
316 if (!BO->hasNoSignedWrap()) { in strengthenOverflowingOperation()
/external/llvm/lib/Target/AArch64/
DAArch64AddressTypePromotion.cpp161 (BinOp->hasNoUnsignedWrap() || BinOp->hasNoSignedWrap())) in canGetThrough()
/external/llvm/include/llvm/IR/
DOperator.h103 bool hasNoSignedWrap() const { in hasNoSignedWrap() function
DInstrTypes.h346 bool hasNoSignedWrap() const;
DPatternMatch.h558 !Op->hasNoSignedWrap()) in match()
/external/llvm/lib/IR/
DInstructions.cpp1920 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()

12