diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-10 23:17:35 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-10 23:17:35 +0000 |
commit | 9d236f909cec671ef2ff186c8fce6d2e1540a0a9 (patch) | |
tree | 49729dbb18282aae564c029b4effaf97f90f7b01 /lib/Transforms/InstCombine/InstCombine.h | |
parent | deaa3f3e523183b611249bba636876cb05c5881a (diff) | |
download | llvm-9d236f909cec671ef2ff186c8fce6d2e1540a0a9.tar.gz llvm-9d236f909cec671ef2ff186c8fce6d2e1540a0a9.tar.bz2 llvm-9d236f909cec671ef2ff186c8fce6d2e1540a0a9.tar.xz |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156585 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombine.h')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstCombine.h b/lib/Transforms/InstCombine/InstCombine.h index 199df519ce..41b2456e72 100644 --- a/lib/Transforms/InstCombine/InstCombine.h +++ b/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 |