/external/llvm/unittests/Transforms/Utils/ |
D | Cloning.cpp | 68 EXPECT_FALSE(AddClone->hasNoSignedWrap()); in TEST_F() 70 EXPECT_FALSE(SubClone->hasNoSignedWrap()); in TEST_F() 72 EXPECT_FALSE(MulClone->hasNoSignedWrap()); in TEST_F() 85 EXPECT_FALSE(AddClone->hasNoSignedWrap()); in TEST_F() 87 EXPECT_FALSE(SubClone->hasNoSignedWrap()); in TEST_F() 89 EXPECT_FALSE(MulClone->hasNoSignedWrap()); in TEST_F() 102 EXPECT_TRUE(AddClone->hasNoSignedWrap()); in TEST_F() 104 EXPECT_TRUE(SubClone->hasNoSignedWrap()); in TEST_F() 106 EXPECT_TRUE(MulClone->hasNoSignedWrap()); in TEST_F() 119 EXPECT_TRUE(AddClone->hasNoSignedWrap()); in TEST_F() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 589 NewShl->setHasNoSignedWrap(I.hasNoSignedWrap()); in FoldShiftByConstant() 615 if (ShiftOp->hasNoSignedWrap()) { in FoldShiftByConstant() 663 if (ShiftOp->hasNoSignedWrap()) { in FoldShiftByConstant() 679 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), in visitShl() 698 if (!I.hasNoSignedWrap() && in visitShl() 774 if (cast<OverflowingBinaryOperator>(Op0)->hasNoSignedWrap()) in visitAShr()
|
D | InstCombinePHI.cpp | 38 isNSW = BO->hasNoSignedWrap(); in FoldPHIArgBinOpIntoPHI() 61 isNSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in FoldPHIArgBinOpIntoPHI() 426 isNSW = BO->hasNoSignedWrap(); in FoldPHIArgOpIntoPHI() 449 isNSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in FoldPHIArgOpIntoPHI()
|
D | InstCombineAddSub.cpp | 881 if (Value *V = SimplifyAddInst(LHS, RHS, I.hasNoSignedWrap(), in visitAdd() 956 New->setHasNoSignedWrap(I.hasNoSignedWrap()); in visitAdd() 1283 if (Value *V = SimplifySubInst(Op0, Op1, I.hasNoSignedWrap(), in visitSub() 1294 Res->setHasNoSignedWrap(I.hasNoSignedWrap()); in visitSub()
|
D | InstructionCombining.cpp | 134 if (!OBO || !OBO->hasNoSignedWrap()) { in MaintainNoSignedWrap() 231 (!Op0 || (isa<BinaryOperator>(Op0) && Op0->hasNoSignedWrap()))) { in SimplifyAssociativeOrCommutative() 898 NoSignedWrap = BO->hasNoSignedWrap(); in Descale() 937 NoSignedWrap = BO->hasNoSignedWrap(); in Descale() 1042 bool OpNoSignedWrap = BO->hasNoSignedWrap(); in Descale()
|
D | InstCombineSelect.cpp | 240 BO->setHasNoSignedWrap(TVI_BO->hasNoSignedWrap()); in FoldSelectIntoOp() 275 BO->setHasNoSignedWrap(FVI_BO->hasNoSignedWrap()); in FoldSelectIntoOp()
|
D | InstCombineSimplifyDemanded.cpp | 613 if (IOp->hasNoSignedWrap()) in SimplifyDemandedUseBits() 888 New->setHasNoSignedWrap(Orig->hasNoSignedWrap()); in SimplifyShrShlDemandedBits()
|
D | InstCombineMulDivRem.cpp | 124 if (I.hasNoSignedWrap()) Shl->setHasNoSignedWrap(); in visitMul() 788 if (match(Sub->getOperand(0), m_Zero()) && Sub->hasNoSignedWrap()) in visitSDiv()
|
D | InstCombineCompares.cpp | 2359 (CmpInst::isSigned(Pred) && BO0->hasNoSignedWrap()); in visitICmpInst() 2363 (CmpInst::isSigned(Pred) && BO1->hasNoSignedWrap()); in visitICmpInst() 2531 bool NSW = BO0->hasNoSignedWrap() && BO1->hasNoSignedWrap(); in visitICmpInst()
|
D | InstCombineCasts.cpp | 37 if (OBI && !OBI->hasNoUnsignedWrap() && !OBI->hasNoSignedWrap()) { in DecomposeSimpleLinearExpr()
|
/external/llvm/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 104 BinOp->hasNoSignedWrap() * OverflowingBinaryOperator::NoSignedWrap | in getHashValue() 169 LHSBinOp->hasNoSignedWrap() != RHSBinOp->hasNoSignedWrap()) in isEqual()
|
D | IndVarSimplify.cpp | 783 if (OBO->hasNoSignedWrap()) WideBO->setHasNoSignedWrap(); in CloneIVUser() 806 if (IsSigned && OBO->hasNoSignedWrap()) in GetExtendedOperandRecurrence()
|
D | GVN.cpp | 1724 if (ReplOp->hasNoSignedWrap() && !Op->hasNoSignedWrap()) in patchReplacementInstruction()
|
/external/llvm/lib/Analysis/ |
D | PHITransAddr.cpp | 266 bool isNSW = cast<BinaryOperator>(Inst)->hasNoSignedWrap(); in PHITranslateSubExpr() 435 Res->setHasNoSignedWrap(cast<BinaryOperator>(Inst)->hasNoSignedWrap()); in InsertPHITranslatedSubExpr()
|
D | InstructionSimplify.cpp | 1105 if ((isSigned && Mul->hasNoSignedWrap()) || in SimplifyDiv() 1405 cast<OverflowingBinaryOperator>(Op0)->hasNoSignedWrap()) in SimplifyAShrInst() 2190 (CmpInst::isSigned(Pred) && LBO->hasNoSignedWrap()); in SimplifyICmpInst() 2196 (CmpInst::isSigned(Pred) && RBO->hasNoSignedWrap()); in SimplifyICmpInst() 2324 bool NSW = LBO->hasNoSignedWrap() && RBO->hasNoSignedWrap(); in SimplifyICmpInst() 3027 cast<BinaryOperator>(I)->hasNoSignedWrap(), in SimplifyInstruction() 3037 cast<BinaryOperator>(I)->hasNoSignedWrap(), in SimplifyInstruction() 3068 cast<BinaryOperator>(I)->hasNoSignedWrap(), in SimplifyInstruction()
|
D | ValueTracking.cpp | 383 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in ComputeMaskedBits() 533 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in ComputeMaskedBits() 540 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in ComputeMaskedBits() 1047 if ((BO->hasNoSignedWrap() || BO->hasNoUnsignedWrap()) && in isKnownNonZero()
|
D | ScalarEvolution.cpp | 3061 if (OBO->hasNoSignedWrap()) in createNodeForPHI()
|
/external/llvm/include/llvm/IR/ |
D | Operator.h | 107 bool hasNoSignedWrap() const { in hasNoSignedWrap() function
|
D | InstrTypes.h | 356 bool hasNoSignedWrap() const;
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 2013 bool BinaryOperator::hasNoSignedWrap() const { in hasNoSignedWrap() function in BinaryOperator 2014 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); in hasNoSignedWrap()
|
D | AsmWriter.cpp | 778 if (OBO->hasNoSignedWrap()) in WriteOptimizationInfo()
|
/external/llvm/lib/Bitcode/Writer/ |
D | BitcodeWriter.cpp | 589 if (OBO->hasNoSignedWrap()) in GetOptimizationFlags()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 1998 VecOp->setHasNoSignedWrap(BinOp->hasNoSignedWrap()); in vectorizeBlockInLoop()
|