A non-escaping malloc in the entry block is not unlike an alloca. Do dead-store
authorNick Lewycky <nicholas@mxc.ca>
Sat, 22 Oct 2011 21:59:35 +0000 (21:59 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 22 Oct 2011 21:59:35 +0000 (21:59 +0000)
commit4d882aae2acc5194b47385c7cb2e0e9ddd202927
treedc52864c852e18d6c72f37300acdb293ef0a00ff
parent614fef6d5a1e24d01ffe7247b1841fd7e08e1e85
A non-escaping malloc in the entry block is not unlike an alloca. Do dead-store
elimination on them too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142735 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/DeadStoreElimination.cpp
test/Transforms/DeadStoreElimination/simple.ll