DeadStoreElimination can now trim the size of a store if the end of the store is...
authorPete Cooper <peter_cooper@apple.com>
Wed, 9 Nov 2011 23:07:35 +0000 (23:07 +0000)
committerPete Cooper <peter_cooper@apple.com>
Wed, 9 Nov 2011 23:07:35 +0000 (23:07 +0000)
commit5ccb0825ed1bdf6271ef451b8239e86d4ff635b1
treec0eeb518c803379e4f8752122f61ff77a4a34b94
parentffab7d0c4f581297e8bc1515eeb34e1b12b650c4
DeadStoreElimination can now trim the size of a store if the end of the store is dead.

Currently checks alignment and killing stores on a power of 2 boundary as this is likely
to trim the size of the earlier store without breaking large vector stores into scalar ones.

Fixes <rdar://problem/10140300>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144239 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/DeadStoreElimination.cpp
test/Transforms/DeadStoreElimination/OverwriteStoreEnd.ll [new file with mode: 0644]