Add support for eliminating stores that store the same value that was just loaded.
authorOwen Anderson <resistor@mac.com>
Mon, 28 Jul 2008 16:14:26 +0000 (16:14 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 28 Jul 2008 16:14:26 +0000 (16:14 +0000)
commit8aa895b19a64796a4c1f7cd0cb0750ad34263ea0
tree73966641c6815ec06eb4828f602e77ccc8d8ed3a
parentd4310a5d41cc13f109890f5efbb19e084fecb27a
Add support for eliminating stores that store the same value that was just loaded.
This fixes PR2599.

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