Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp189 if (I.hasNoSignedWrap()) in visitMul()
208 if (I.hasNoSignedWrap() && Mul->hasNoSignedWrap() && in visitMul()
221 if (I.hasNoSignedWrap()) { in visitMul()
286 if (I.hasNoSignedWrap() && in visitMul()
287 cast<OverflowingBinaryOperator>(Op0)->hasNoSignedWrap() && in visitMul()
288 cast<OverflowingBinaryOperator>(Op1)->hasNoSignedWrap()) in visitMul()
343 ShlNSW = cast<ShlOperator>(Op0)->hasNoSignedWrap(); in visitMul()
346 ShlNSW = cast<ShlOperator>(Op1)->hasNoSignedWrap(); in visitMul()
351 if (I.hasNoSignedWrap() && ShlNSW) in visitMul()
380 if (!I.hasNoSignedWrap() && willNotOverflowSignedMul(Op0, Op1, I)) { in visitMul()
[all …]
DInstCombineAddSub.cpp914 if (Add.hasNoSignedWrap() || Add.hasNoUnsignedWrap()) in foldAddWithConstant()
1207 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), in visitAdd()
1280 Shl->setHasNoSignedWrap(I.hasNoSignedWrap()); in visitAdd()
1392 if (!I.hasNoSignedWrap() && willNotOverflowSignedAdd(LHS, RHS, I)) { in visitAdd()
1681 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), in visitSub()
1700 if (BO->hasNoSignedWrap() && I.hasNoSignedWrap()) in visitSub()
1703 if (cast<Constant>(Op1)->isNotMinSignedValue() && I.hasNoSignedWrap()) in visitSub()
1998 Add->setHasNoSignedWrap(I.hasNoSignedWrap()); in visitSub()
2006 Add->setHasNoSignedWrap(I.hasNoSignedWrap()); in visitSub()
2091 I.hasNoSignedWrap()); in visitSub()
[all …]
DInstCombineShifts.cpp145 NewShift->setHasNoSignedWrap(Sh0->hasNoSignedWrap() && in reassociateShiftAmtsOfTwoSameDirectionShifts()
146 Sh1->hasNoSignedWrap()); in reassociateShiftAmtsOfTwoSameDirectionShifts()
929 I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), Q)) in visitShl()
975 NewShl->setHasNoSignedWrap(I.hasNoSignedWrap()); in visitShl()
1004 if (!I.hasNoSignedWrap() && ComputeNumSignBits(Op0, 0, &I) > ShAmt) { in visitShl()
DInstructionCombining.cpp220 if (!OBO || !OBO->hasNoSignedWrap()) in maintainNoSignedWrap()
246 static bool hasNoSignedWrap(BinaryOperator &I) { in hasNoSignedWrap() function
248 return OBO && OBO->hasNoSignedWrap(); in hasNoSignedWrap()
356 bool IsNSW = maintainNoSignedWrap(I, B, C) && hasNoSignedWrap(*Op0); in SimplifyAssociativeOrCommutative()
618 HasNSW = I.hasNoSignedWrap(); in tryFactorization()
623 HasNSW &= LOBO->hasNoSignedWrap(); in tryFactorization()
628 HasNSW &= ROBO->hasNoSignedWrap(); in tryFactorization()
1259 NoSignedWrap = BO->hasNoSignedWrap(); in Descale()
1298 NoSignedWrap = BO->hasNoSignedWrap(); in Descale()
1409 bool OpNoSignedWrap = BO->hasNoSignedWrap(); in Descale()
DInstCombineSimplifyDemanded.cpp490 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in SimplifyDemandedUseBits()
510 if (IOp->hasNoSignedWrap()) in SimplifyDemandedUseBits()
981 New->setHasNoSignedWrap(Orig->hasNoSignedWrap()); in simplifyShrShlDemandedBits()
DInstCombineCompares.cpp1950 if (isSignTest(Pred, C) && Mul->hasNoSignedWrap()) { in foldICmpMulConstant()
2047 if (Shl->hasNoSignedWrap()) { in foldICmpShlConstant()
2510 (Cmp.isSigned() && Sub->hasNoSignedWrap())) && in foldICmpSubConstant()
2520 if (Sub->hasNoSignedWrap()) { in foldICmpSubConstant()
2572 if ((Add->hasNoSignedWrap() && in foldICmpAddConstant()
3000 if (C.isNullValue() && BO->hasNoSignedWrap()) { in foldICmpBinOpEqualityWithConstant()
3730 (CmpInst::isSigned(Pred) && BO0->hasNoSignedWrap()); in foldICmpBinOp()
3735 (CmpInst::isSigned(Pred) && BO1->hasNoSignedWrap()); in foldICmpBinOp()
4033 bool NSW = BO0->hasNoSignedWrap() && BO1->hasNoSignedWrap(); in foldICmpBinOp()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DPoisonChecking.cpp117 if (I.hasNoSignedWrap()) { in generatePoisonChecksForBinOp()
130 if (I.hasNoSignedWrap()) { in generatePoisonChecksForBinOp()
143 if (I.hasNoSignedWrap()) { in generatePoisonChecksForBinOp()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DInstruction.cpp116 bool Instruction::hasNoSignedWrap() const { in hasNoSignedWrap() function in Instruction
117 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); in hasNoSignedWrap()
247 setHasNoSignedWrap(OB->hasNoSignedWrap()); in copyIRFlags()
270 setHasNoSignedWrap(hasNoSignedWrap() & OB->hasNoSignedWrap()); in andIRFlags()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DInstructionSimplify.h77 template <class InstT> bool hasNoSignedWrap(const InstT *Op) const { in hasNoSignedWrap() function
79 return Op->hasNoSignedWrap(); in hasNoSignedWrap()
DScalarEvolutionExpressions.h183 bool hasNoSignedWrap() const { in hasNoSignedWrap() function
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DPHITransAddr.cpp257 bool isNSW = cast<BinaryOperator>(Inst)->hasNoSignedWrap(); in PHITranslateSubExpr()
431 Res->setHasNoSignedWrap(cast<BinaryOperator>(Inst)->hasNoSignedWrap()); in InsertPHITranslatedSubExpr()
DValueTracking.cpp1104 bool NSW = Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(I)); in computeKnownBitsFromOperator()
1173 Q.IIQ.hasNoSignedWrap(cast<Instruction>(RHS))) in computeKnownBitsFromOperator()
1239 bool NSW = Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(I)); in computeKnownBitsFromOperator()
1290 bool NSW = Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(I)); in computeKnownBitsFromOperator()
1296 bool NSW = Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(I)); in computeKnownBitsFromOperator()
1468 if (OverflowOp && Q.IIQ.hasNoSignedWrap(OverflowOp)) { in computeKnownBitsFromOperator()
1883 Q.IIQ.hasNoSignedWrap(VOBO)) { in isKnownToBeAPowerOfTwo()
2303 if ((Q.IIQ.hasNoSignedWrap(BO) || Q.IIQ.hasNoUnsignedWrap(BO)) && in isKnownNonZero()
4250 if (Add && Add->hasNoSignedWrap()) { in computeOverflowForSignedAdd()
5606 } else if (IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(&BO))) { in setLimitsForBinOp()
[all …]
DInstructionSimplify.cpp1064 if ((IsSigned && Q.IIQ.hasNoSignedWrap(Mul)) || in simplifyDiv()
1668 bool isNSW = IIQ.hasNoSignedWrap(AddInst); in simplifyAndOfICmpsWithAdd()
1741 bool isNSW = IIQ.hasNoSignedWrap(AddInst); in simplifyOrOfICmpsWithAdd()
2725 Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(LBO))); in simplifyICmpWithBinOp()
2735 Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(RBO))); in simplifyICmpWithBinOp()
2953 if (Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(LBO)) || in simplifyICmpWithBinOp()
3002 bool NSW = Q.IIQ.hasNoSignedWrap(LBO) && Q.IIQ.hasNoSignedWrap(RBO); in simplifyICmpWithBinOp()
3732 if (Q.IIQ.hasNoSignedWrap(B) || Q.IIQ.hasNoUnsignedWrap(B)) in SimplifyWithOpReplaced()
5357 Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)), in SimplifyInstruction()
5367 Q.IIQ.hasNoSignedWrap(cast<BinaryOperator>(I)), in SimplifyInstruction()
[all …]
DDemandedBits.cpp193 if (S->hasNoSignedWrap()) in determineLiveOperandBits()
DScalarEvolution.cpp279 if (AR->hasNoSignedWrap()) in print()
321 if (NAry->hasNoSignedWrap()) in print()
2003 if (SA->hasNoSignedWrap()) { in getSignExtendExpr()
2045 if (!AR->hasNoSignedWrap()) { in getSignExtendExpr()
2052 if (AR->hasNoSignedWrap()) in getSignExtendExpr()
3893 if (I->hasNoSignedWrap() && !NS->hasNoSignedWrap()) in SCEVLostPoisonFlags()
4449 if (!AR->hasNoSignedWrap()) { in proveNoWrapViaConstantRanges()
4492 IsNSW = OBO->hasNoSignedWrap(); in BinaryOp()
5588 if (Add->hasNoSignedWrap()) in getRangeRef()
5682 if (AddRec->hasNoSignedWrap()) { in getRangeRef()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DInstruction.h277 bool hasNoSignedWrap() const;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DInstruction.h349 bool hasNoSignedWrap() const;
DOperator.h96 bool hasNoSignedWrap() const { in hasNoSignedWrap() function
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp732 if (BO->hasNoUnsignedWrap() && BO->hasNoSignedWrap()) in strengthenOverflowingOperation()
751 if (!BO->hasNoSignedWrap() && in strengthenOverflowingOperation()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp1273 if (ExtKind == SignExtended && OBO->hasNoSignedWrap()) in getExtendedOperandRecurrence()
1437 if (ExtKind == SignExtended && OBO->hasNoSignedWrap()) in widenWithVariantLoadUse()
2469 if (BO->hasNoSignedWrap()) in linearFunctionTestReplace()
2470 BO->setHasNoSignedWrap(AR->hasNoSignedWrap()); in linearFunctionTestReplace()
DSeparateConstOffsetFromGEP.cpp540 if (SignExtended && !BO->hasNoSignedWrap()) in CanTraceInto()
DCorrelatedValuePropagation.cpp750 bool NSW = BinOp->hasNoSignedWrap(); in processBinOp()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGDumper.cpp523 if (getFlags().hasNoSignedWrap()) in print_details()
DInstrEmitter.cpp880 if (Flags.hasNoSignedWrap()) in EmitMachineNode()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DLoadStoreVectorizer.cpp456 Safe = cast<BinaryOperator>(OpB)->hasNoSignedWrap(); in lookThroughComplexAddresses()

12