summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LCSSA.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-03-15 07:31:32 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-03-15 07:31:32 +0000
commitc1f865836837bb5792b964c6dfd99a956a876a0f (patch)
tree0a571e38769f945dfe1ddc8b37c32aea6fc09891 /llvm/lib/Transforms/Utils/LCSSA.cpp
parente3ae0a4c4721310fbdb1e2c0164f554936bc79fe (diff)
downloadbcm5719-llvm-c1f865836837bb5792b964c6dfd99a956a876a0f.tar.gz
bcm5719-llvm-c1f865836837bb5792b964c6dfd99a956a876a0f.zip
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. llvm-svn: 127673
Diffstat (limited to 'llvm/lib/Transforms/Utils/LCSSA.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud