OSDN Git Service

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)
committerStephen Hines <srhines@google.com>
Mon, 14 Nov 2011 17:12:06 +0000 (09:12 -0800)
commit53b1f954ae2a96afd597b2b84f3f4b602ad9138d
treee0fa88d031575c3dcaea605406113536908adfd0
parent19f6eefba89a38f91c2b8ed360bf613d451ffc84
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]