| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| D | InstCombineMulDivRem.cpp | 162 if (I.hasNoSignedWrap()) in visitMul() 181 if (I.hasNoSignedWrap() && Mul->hasNoSignedWrap() && in visitMul() 194 if (I.hasNoSignedWrap()) { in visitMul() 254 if (I.hasNoSignedWrap() && in visitMul() 255 cast<OverflowingBinaryOperator>(Op0)->hasNoSignedWrap() && in visitMul() 256 cast<OverflowingBinaryOperator>(Op1)->hasNoSignedWrap()) in visitMul() 311 ShlNSW = cast<ShlOperator>(Op0)->hasNoSignedWrap(); in visitMul() 314 ShlNSW = cast<ShlOperator>(Op1)->hasNoSignedWrap(); in visitMul() 319 if (I.hasNoSignedWrap() && ShlNSW) in visitMul() 373 ConstantInt::getBool(I.getContext(), I.hasNoSignedWrap())); in visitMul() [all …]
|
| D | InstCombineAddSub.cpp | 918 if (Add.hasNoSignedWrap() || Add.hasNoUnsignedWrap()) in foldAddWithConstant() 1270 bool HasNSW = I.hasNoSignedWrap() && Op0->hasNoSignedWrap() && in factorizeMathWithShlOps() 1271 Op1->hasNoSignedWrap(); in factorizeMathWithShlOps() 1289 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), in visitAdd() 1320 Shl->setHasNoSignedWrap(I.hasNoSignedWrap()); in visitAdd() 1424 if (!I.hasNoSignedWrap() && willNotOverflowSignedAdd(LHS, RHS, I)) { in visitAdd() 1733 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), in visitSub() 1750 if (BO->hasNoSignedWrap() && I.hasNoSignedWrap()) in visitSub() 1753 if (cast<Constant>(Op1)->isNotMinSignedValue() && I.hasNoSignedWrap()) in visitSub() 1779 if (!I.hasNoSignedWrap() && willNotOverflowSignedSub(Op0, Op1, I)) { in visitSub() [all …]
|
| D | InstCombineShifts.cpp | 152 NewShift->setHasNoSignedWrap(Sh0->hasNoSignedWrap() && in reassociateShiftAmtsOfTwoSameDirectionShifts() 153 Sh1->hasNoSignedWrap()); in reassociateShiftAmtsOfTwoSameDirectionShifts() 895 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), Q)) in visitShl() 940 NewShl->setHasNoSignedWrap(I.hasNoSignedWrap()); in visitShl() 961 NewShl->setHasNoSignedWrap(I.hasNoSignedWrap()); in visitShl() 995 if (!I.hasNoSignedWrap() && ComputeNumSignBits(Op0, 0, &I) > ShAmt) { in visitShl()
|
| D | InstCombineSimplifyDemanded.cpp | 525 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in SimplifyDemandedUseBits() 545 if (IOp->hasNoSignedWrap()) in SimplifyDemandedUseBits() 564 if (IOp->hasNoSignedWrap()) { in SimplifyDemandedUseBits() 1051 New->setHasNoSignedWrap(Orig->hasNoSignedWrap()); in simplifyShrShlDemandedBits()
|
| D | InstructionCombining.cpp | 260 if (!OBO || !OBO->hasNoSignedWrap()) in maintainNoSignedWrap() 286 static bool hasNoSignedWrap(BinaryOperator &I) { in hasNoSignedWrap() function 288 return OBO && OBO->hasNoSignedWrap(); in hasNoSignedWrap() 416 bool IsNSW = maintainNoSignedWrap(I, B, C) && hasNoSignedWrap(*Op0); in SimplifyAssociativeOrCommutative() 679 HasNSW = I.hasNoSignedWrap(); in tryFactorization() 684 HasNSW &= LOBO->hasNoSignedWrap(); in tryFactorization() 689 HasNSW &= ROBO->hasNoSignedWrap(); in tryFactorization() 1406 NoSignedWrap = BO->hasNoSignedWrap(); in Descale() 1445 NoSignedWrap = BO->hasNoSignedWrap(); in Descale() 1556 bool OpNoSignedWrap = BO->hasNoSignedWrap(); in Descale()
|
| D | InstCombineCompares.cpp | 1995 if (isSignTest(Pred, C) && Mul->hasNoSignedWrap()) { in foldICmpMulConstant() 2006 if (Mul->hasNoSignedWrap() && C.srem(*MulC).isNullValue()) { in foldICmpMulConstant() 2107 if (Shl->hasNoSignedWrap()) { in foldICmpShlConstant() 2595 (Cmp.isSigned() && Sub->hasNoSignedWrap())) && in foldICmpSubConstant() 2605 if (Sub->hasNoSignedWrap()) { in foldICmpSubConstant() 2657 if ((Add->hasNoSignedWrap() && in foldICmpAddConstant() 3868 (CmpInst::isSigned(Pred) && BO0->hasNoSignedWrap()); in foldICmpBinOp() 3873 (CmpInst::isSigned(Pred) && BO1->hasNoSignedWrap()); in foldICmpBinOp() 4005 bool HasNSW = BO0->hasNoSignedWrap(); in foldICmpBinOp() 4011 bool HasNSW = BO1->hasNoSignedWrap(); in foldICmpBinOp() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| D | PoisonChecking.cpp | 115 if (I.hasNoSignedWrap()) { in generateCreationChecksForBinOp() 128 if (I.hasNoSignedWrap()) { in generateCreationChecksForBinOp() 141 if (I.hasNoSignedWrap()) { in generateCreationChecksForBinOp()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/ |
| D | Instruction.cpp | 140 bool Instruction::hasNoSignedWrap() const { in hasNoSignedWrap() function in Instruction 141 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); in hasNoSignedWrap() 293 setHasNoSignedWrap(OB->hasNoSignedWrap()); in copyIRFlags() 316 setHasNoSignedWrap(hasNoSignedWrap() & OB->hasNoSignedWrap()); in andIRFlags()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| D | InstructionSimplify.h | 81 template <class InstT> bool hasNoSignedWrap(const InstT *Op) const { in hasNoSignedWrap() function 83 return Op->hasNoSignedWrap(); in hasNoSignedWrap()
|
| D | ScalarEvolutionExpressions.h | 221 bool hasNoSignedWrap() const { in hasNoSignedWrap() function
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/ |
| D | PHITransAddr.cpp | 257 bool isNSW = cast<BinaryOperator>(Inst)->hasNoSignedWrap(); in PHITranslateSubExpr() 431 Res->setHasNoSignedWrap(cast<BinaryOperator>(Inst)->hasNoSignedWrap()); in InsertPHITranslatedSubExpr()
|
| D | ValueTracking.cpp | 1095 bool NSW = Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(I)); in computeKnownBitsFromOperator() 1142 Q.IIQ.hasNoSignedWrap(cast<Instruction>(RHS))) in computeKnownBitsFromOperator() 1241 bool NSW = Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(I)); in computeKnownBitsFromOperator() 1283 bool NSW = Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(I)); in computeKnownBitsFromOperator() 1289 bool NSW = Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(I)); in computeKnownBitsFromOperator() 1471 if (OverflowOp && Q.IIQ.hasNoSignedWrap(OverflowOp)) { in computeKnownBitsFromOperator() 2030 Q.IIQ.hasNoSignedWrap(VOBO)) { in isKnownToBeAPowerOfTwo() 2259 (BO->hasNoSignedWrap() && match(Step, m_APInt(StepC)) && in isNonZeroRecurrence() 2262 return (BO->hasNoUnsignedWrap() || BO->hasNoSignedWrap()) && in isNonZeroRecurrence() 2265 return BO->hasNoUnsignedWrap() || BO->hasNoSignedWrap(); in isNonZeroRecurrence() [all …]
|
| D | InstructionSimplify.cpp | 1009 if ((IsSigned && Q.IIQ.hasNoSignedWrap(Mul)) || in simplifyDivRem() 1710 bool isNSW = IIQ.hasNoSignedWrap(AddInst); in simplifyAndOfICmpsWithAdd() 1846 bool isNSW = IIQ.hasNoSignedWrap(AddInst); in simplifyOrOfICmpsWithAdd() 2993 Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(LBO))); in simplifyICmpWithBinOp() 3003 Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(RBO))); in simplifyICmpWithBinOp() 3091 if (Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(LBO)) || in simplifyICmpWithBinOp() 3142 bool NSW = Q.IIQ.hasNoSignedWrap(LBO) && Q.IIQ.hasNoSignedWrap(RBO); in simplifyICmpWithBinOp() 6106 NewOps[0], NewOps[1], Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)), in simplifyInstructionWithOperands() 6114 NewOps[0], NewOps[1], Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)), in simplifyInstructionWithOperands() 6143 NewOps[0], NewOps[1], Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)), in simplifyInstructionWithOperands()
|
| D | DemandedBits.cpp | 216 if (S->hasNoSignedWrap()) in determineLiveOperandBits()
|
| D | ScalarEvolution.cpp | 292 if (AR->hasNoSignedWrap()) in print() 333 if (NAry->hasNoSignedWrap()) in print() 1933 if (SA->hasNoSignedWrap()) { in getSignExtendExpr() 1975 if (!AR->hasNoSignedWrap()) { in getSignExtendExpr() 1982 if (AR->hasNoSignedWrap()) in getSignExtendExpr() 2065 if (AR->hasNoSignedWrap()) { in getSignExtendExpr() 2295 if (OBO->hasNoSignedWrap()) in getStrengthenedNoWrapFlagsFromBinOp() 2300 if (OBO->hasNoUnsignedWrap() && OBO->hasNoSignedWrap()) in getStrengthenedNoWrapFlagsFromBinOp() 2318 if (!OBO->hasNoSignedWrap() && in getStrengthenedNoWrapFlagsFromBinOp() 4035 if (I->hasNoSignedWrap() && !NS->hasNoSignedWrap()) in SCEVLostPoisonFlags() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
| D | Instruction.h | 390 bool hasNoSignedWrap() const;
|
| D | Operator.h | 97 bool hasNoSignedWrap() const { in hasNoSignedWrap() function
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| D | LoopIdiomRecognize.cpp | 2392 if (XNext->hasNoSignedWrap() || XNext->hasNoUnsignedWrap() || in recognizeShiftUntilBitTest() 2531 (NBits->hasNoSignedWrap() || NBits->hasNoUnsignedWrap())) in detectShiftUntilZeroIdiom() 2536 NBits->hasNoSignedWrap()) in detectShiftUntilZeroIdiom()
|
| D | IndVarSimplify.cpp | 1110 if (BO->hasNoSignedWrap()) in linearFunctionTestReplace() 1111 BO->setHasNoSignedWrap(AR->hasNoSignedWrap()); in linearFunctionTestReplace()
|
| D | SeparateConstOffsetFromGEP.cpp | 559 if (SignExtended && !BO->hasNoSignedWrap()) in CanTraceInto()
|
| D | CorrelatedValuePropagation.cpp | 936 bool NSW = BinOp->hasNoSignedWrap(); in processBinOp()
|
| D | LoopRerollPass.cpp | 565 if (BO->hasNoSignedWrap() && UUser && UUser->hasOneUse() && in isLoopControlIV()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| D | SimplifyIndVar.cpp | 1326 if (ExtKind == SignExtended && OBO->hasNoSignedWrap()) in getExtendedOperandRecurrence() 1497 bool CanSignExtend = ExtKind == SignExtended && OBO->hasNoSignedWrap(); in widenWithVariantUse()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| D | SelectionDAGDumper.cpp | 561 if (getFlags().hasNoSignedWrap()) in print_details()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| D | LoadStoreVectorizer.cpp | 389 return (Signed && BinOpI->hasNoSignedWrap()) || in checkNoWrapFlags()
|