diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-03-15 07:31:32 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-03-15 07:31:32 +0000 |
commit | 42e72ca3d00dbe073fbb39e181caa7f0c4c171b7 (patch) | |
tree | 02a6266d327162634fccca021e736135a32ead7b /test/Transforms/LCSSA/2006-06-03-IncorrectIDFPhis.ll | |
parent | d158fba3e45547f013bbab4c0ac640f31b5e341f (diff) | |
download | external_llvm-42e72ca3d00dbe073fbb39e181caa7f0c4c171b7.zip external_llvm-42e72ca3d00dbe073fbb39e181caa7f0c4c171b7.tar.gz external_llvm-42e72ca3d00dbe073fbb39e181caa7f0c4c171b7.tar.bz2 |
Add C++ global operator {new,new[],delete,delete[]}(unsigned {int,long}) to the
memory builtins as equivalent to malloc/free.
This is different from any attribute we have. For example, you can delete the
allocators when their result is unused, but you can't collapse two calls to the
same function, even if no global/memory state has changed in between. The
noalias return states that the result does not alias any other pointer, but
instcombine optimizes malloc() as though the result is non-null for the purpose
of eliminating unused pointers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LCSSA/2006-06-03-IncorrectIDFPhis.ll')
0 files changed, 0 insertions, 0 deletions