objectsize:
authorNuno Lopes <nunoplopes@sapo.pt>
Wed, 9 May 2012 21:30:57 +0000 (21:30 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Wed, 9 May 2012 21:30:57 +0000 (21:30 +0000)
commite3305b17502c2a34152d4f50607b685eb2cadd21
tree9d967693ab42208f175ccc564e4242d7b81290bc
parent9166d23327c8dfb5b600795715e75e8b446b5690
objectsize:
refactor code a bit to enable future changes to support run-time information
add support to compute allocation sizes at run-time if penalty > 1 (e.g., malloc(x), calloc(x, y), and VLAs)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156515 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/objsize.ll