From f573030391ce1f67e4d656dd941cb86cd91ee9ba Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Thu, 10 May 2012 23:17:35 +0000 Subject: objectsize: add support for GEPs with non-constant indexes add an additional parameter to InstCombiner::EmitGEPOffset() to force it to *not* emit operations with NUW flag llvm-svn: 156585 --- llvm/lib/Transforms/InstCombine/InstCombine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/InstCombine/InstCombine.h') diff --git a/llvm/lib/Transforms/InstCombine/InstCombine.h b/llvm/lib/Transforms/InstCombine/InstCombine.h index 199df519ce0..41b2456e728 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombine.h +++ b/llvm/lib/Transforms/InstCombine/InstCombine.h @@ -226,7 +226,7 @@ private: bool DoXform = true); Instruction *transformSExtICmp(ICmpInst *ICI, Instruction &CI); bool WillNotOverflowSignedAdd(Value *LHS, Value *RHS); - Value *EmitGEPOffset(User *GEP); + Value *EmitGEPOffset(User *GEP, bool NoNUW = false); public: // InsertNewInstBefore - insert an instruction New before instruction Old -- cgit v1.2.3