Home
last modified time | relevance | path

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

/external/llvm/unittests/Transforms/Utils/
DCloning.cpp68 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/
DInstCombineShifts.cpp589 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()
DInstCombinePHI.cpp38 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()
DInstCombineAddSub.cpp881 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()
DInstructionCombining.cpp134 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()
DInstCombineSelect.cpp240 BO->setHasNoSignedWrap(TVI_BO->hasNoSignedWrap()); in FoldSelectIntoOp()
275 BO->setHasNoSignedWrap(FVI_BO->hasNoSignedWrap()); in FoldSelectIntoOp()
DInstCombineSimplifyDemanded.cpp613 if (IOp->hasNoSignedWrap()) in SimplifyDemandedUseBits()
888 New->setHasNoSignedWrap(Orig->hasNoSignedWrap()); in SimplifyShrShlDemandedBits()
DInstCombineMulDivRem.cpp124 if (I.hasNoSignedWrap()) Shl->setHasNoSignedWrap(); in visitMul()
788 if (match(Sub->getOperand(0), m_Zero()) && Sub->hasNoSignedWrap()) in visitSDiv()
DInstCombineCompares.cpp2359 (CmpInst::isSigned(Pred) && BO0->hasNoSignedWrap()); in visitICmpInst()
2363 (CmpInst::isSigned(Pred) && BO1->hasNoSignedWrap()); in visitICmpInst()
2531 bool NSW = BO0->hasNoSignedWrap() && BO1->hasNoSignedWrap(); in visitICmpInst()
DInstCombineCasts.cpp37 if (OBI && !OBI->hasNoUnsignedWrap() && !OBI->hasNoSignedWrap()) { in DecomposeSimpleLinearExpr()
/external/llvm/lib/Transforms/Scalar/
DEarlyCSE.cpp104 BinOp->hasNoSignedWrap() * OverflowingBinaryOperator::NoSignedWrap | in getHashValue()
169 LHSBinOp->hasNoSignedWrap() != RHSBinOp->hasNoSignedWrap()) in isEqual()
DIndVarSimplify.cpp783 if (OBO->hasNoSignedWrap()) WideBO->setHasNoSignedWrap(); in CloneIVUser()
806 if (IsSigned && OBO->hasNoSignedWrap()) in GetExtendedOperandRecurrence()
DGVN.cpp1724 if (ReplOp->hasNoSignedWrap() && !Op->hasNoSignedWrap()) in patchReplacementInstruction()
/external/llvm/lib/Analysis/
DPHITransAddr.cpp266 bool isNSW = cast<BinaryOperator>(Inst)->hasNoSignedWrap(); in PHITranslateSubExpr()
435 Res->setHasNoSignedWrap(cast<BinaryOperator>(Inst)->hasNoSignedWrap()); in InsertPHITranslatedSubExpr()
DInstructionSimplify.cpp1105 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()
DValueTracking.cpp383 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()
DScalarEvolution.cpp3061 if (OBO->hasNoSignedWrap()) in createNodeForPHI()
/external/llvm/include/llvm/IR/
DOperator.h107 bool hasNoSignedWrap() const { in hasNoSignedWrap() function
DInstrTypes.h356 bool hasNoSignedWrap() const;
/external/llvm/lib/IR/
DInstructions.cpp2013 bool BinaryOperator::hasNoSignedWrap() const { in hasNoSignedWrap() function in BinaryOperator
2014 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); in hasNoSignedWrap()
DAsmWriter.cpp778 if (OBO->hasNoSignedWrap()) in WriteOptimizationInfo()
/external/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp589 if (OBO->hasNoSignedWrap()) in GetOptimizationFlags()
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp1998 VecOp->setHasNoSignedWrap(BinOp->hasNoSignedWrap()); in vectorizeBlockInLoop()