X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FTransforms%2FInstCombine%2FInstCombine.h;h=96edc793175debbc4752cc6a6c2a7a0260825ccd;hp=b4d1efc1a92680ae6d1ad604b6867f2638e9eba8;hb=25e8e79fab57f4a95165f555ae67d0839d9a6399;hpb=71fc42dbf6d2c6625f4245b633ccdc0f6b8e36ae diff --git a/lib/Transforms/InstCombine/InstCombine.h b/lib/Transforms/InstCombine/InstCombine.h index b4d1efc1a92..96edc793175 100644 --- a/lib/Transforms/InstCombine/InstCombine.h +++ b/lib/Transforms/InstCombine/InstCombine.h @@ -286,7 +286,6 @@ private: bool WillNotOverflowSignedSub(Value *LHS, Value *RHS, Instruction *CxtI); bool WillNotOverflowUnsignedSub(Value *LHS, Value *RHS, Instruction *CxtI); bool WillNotOverflowSignedMul(Value *LHS, Value *RHS, Instruction *CxtI); - bool WillNotOverflowUnsignedMul(Value *LHS, Value *RHS, Instruction *CxtI); Value *EmitGEPOffset(User *GEP); Instruction *scalarizePHI(ExtractElementInst &EI, PHINode *PN); Value *EvaluateInDifferentElementOrder(Value *V, ArrayRef Mask); @@ -388,6 +387,10 @@ public: return llvm::ComputeSignBit(V, KnownZero, KnownOne, DL, Depth, AT, CxtI, DT); } + OverflowResult computeOverflowForUnsignedMul(Value *LHS, Value *RHS, + const Instruction *CxtI) { + return llvm::computeOverflowForUnsignedMul(LHS, RHS, DL, AT, CxtI, DT); + } private: /// SimplifyAssociativeOrCommutative - This performs a few simplifications for