objectsize: add support for GEPs with non-constant indexes
authorNuno Lopes <nunoplopes@sapo.pt>
Thu, 10 May 2012 23:17:35 +0000 (23:17 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Thu, 10 May 2012 23:17:35 +0000 (23:17 +0000)
commit9d236f909cec671ef2ff186c8fce6d2e1540a0a9
tree49729dbb18282aae564c029b4effaf97f90f7b01
parentdeaa3f3e523183b611249bba636876cb05c5881a
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
lib/Transforms/InstCombine/InstCombine.h
lib/Transforms/InstCombine/InstCombineAddSub.cpp
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/objsize.ll