Add support for invoke to the MemoryBuiltin analysid.
authorNuno Lopes <nunoplopes@sapo.pt>
Thu, 21 Jun 2012 21:25:05 +0000 (21:25 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Thu, 21 Jun 2012 21:25:05 +0000 (21:25 +0000)
commit2b3e9580536dfb5666b9d91e99baebf6d45bfa5f
treee7fda8237bde8672db2d797f4327493186bc57c0
parent54c5bc87992ebeaa9e71f2bfb60ac5cf74b77db3
Add support for invoke to the MemoryBuiltin analysid.
Update comments accordingly.

Make instcombine remove useless invokes to C++'s 'new' allocation function (test attached).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158937 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/MemoryBuiltins.h
lib/Analysis/MemoryBuiltins.cpp
lib/Transforms/InstCombine/InstCombineCalls.cpp
lib/Transforms/InstCombine/InstructionCombining.cpp
test/Transforms/InstCombine/objsize-64.ll