Home
last modified time | relevance | path

Searched refs:isNSW (Results 1 – 4 of 4) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp35 bool isNUW = false, isNSW = false, isExact = false; in FoldPHIArgBinOpIntoPHI() local
39 isNSW = BO->hasNoSignedWrap(); in FoldPHIArgBinOpIntoPHI()
61 if (isNSW) in FoldPHIArgBinOpIntoPHI()
62 isNSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in FoldPHIArgBinOpIntoPHI()
125 if (isNSW) NewBinOp->setHasNoSignedWrap(); in FoldPHIArgBinOpIntoPHI()
497 bool isNUW = false, isNSW = false, isExact = false; in FoldPHIArgOpIntoPHI() local
518 isNSW = BO->hasNoSignedWrap(); in FoldPHIArgOpIntoPHI()
540 if (isNSW) in FoldPHIArgOpIntoPHI()
541 isNSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in FoldPHIArgOpIntoPHI()
585 if (isNSW) BinOp->setHasNoSignedWrap(); in FoldPHIArgOpIntoPHI()
/external/llvm/include/llvm/Analysis/
DInstructionSimplify.h51 Value *SimplifyAddInst(Value *LHS, Value *RHS, bool isNSW, bool isNUW,
60 Value *SimplifySubInst(Value *LHS, Value *RHS, bool isNSW, bool isNUW,
154 Value *SimplifyShlInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW,
/external/llvm/lib/Analysis/
DPHITransAddr.cpp259 bool isNSW = cast<BinaryOperator>(Inst)->hasNoSignedWrap(); in PHITranslateSubExpr() local
271 isNSW = isNUW = false; in PHITranslateSubExpr()
282 if (Value *Res = SimplifyAddInst(LHS, RHS, isNSW, isNUW, DL, TLI, DT, AC)) { in PHITranslateSubExpr()
DInstructionSimplify.cpp529 static Value *SimplifyAddInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifyAddInst() argument
585 Value *llvm::SimplifyAddInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifyAddInst() argument
589 return ::SimplifyAddInst(Op0, Op1, isNSW, isNUW, Query(DL, TLI, DT, AC, CxtI), in SimplifyAddInst()
661 static Value *SimplifySubInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifySubInst() argument
778 Value *llvm::SimplifySubInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifySubInst() argument
782 return ::SimplifySubInst(Op0, Op1, isNSW, isNUW, Query(DL, TLI, DT, AC, CxtI), in SimplifySubInst()
1380 static Value *SimplifyShlInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifyShlInst() argument
1388 return isNSW || isNUW ? Op0 : Constant::getNullValue(Op0->getType()); in SimplifyShlInst()
1397 Value *llvm::SimplifyShlInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW, in SimplifyShlInst() argument
1401 return ::SimplifyShlInst(Op0, Op1, isNSW, isNUW, Query(DL, TLI, DT, AC, CxtI), in SimplifyShlInst()
[all …]