diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-07-06 23:09:25 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-07-06 23:09:25 +0000 |
commit | fa0dffcceedb408c42716a3877c4357371a0fb55 (patch) | |
tree | 3b7e47b6ef22fcf58b8dd071f6c5582819e65870 /clang/test/Index/annotate-comments.cpp | |
parent | 9877f689f282b19ca697aa8c6fecd752a84dbddd (diff) | |
download | bcm5719-llvm-fa0dffcceedb408c42716a3877c4357371a0fb55.tar.gz bcm5719-llvm-fa0dffcceedb408c42716a3877c4357371a0fb55.zip |
teach instcombine to remove allocated buffers even if there are stores, memcpy/memmove/memset, and objectsize users.
This means we can do cheap DSE for heap memory.
Nothing is done if the pointer excapes or has a load.
The churn in the tests is mostly due to objectsize, since we want to make sure we
don't delete the malloc call before evaluating the objectsize (otherwise it becomes -1/0)
llvm-svn: 159876
Diffstat (limited to 'clang/test/Index/annotate-comments.cpp')
0 files changed, 0 insertions, 0 deletions