diff options
author | Owen Anderson <resistor@mac.com> | 2011-08-30 18:51:55 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2011-08-30 18:51:55 +0000 |
commit | d708ec4c6a3e55865b2d4d8096871a2fc8087bf8 (patch) | |
tree | 8d6d48efa980c0cf8dba305edd6af25b631049c5 /llvm/lib | |
parent | 267a6d92fa82f43191cf301d616a30b4b154b189 (diff) | |
download | bcm5719-llvm-d708ec4c6a3e55865b2d4d8096871a2fc8087bf8.tar.gz bcm5719-llvm-d708ec4c6a3e55865b2d4d8096871a2fc8087bf8.zip |
When walking backwards to eliminate final stores to allocas at the end of a function, encountering an unrelated store should not cause us to give up like encountering a load does.
llvm-svn: 138809
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp index 8559147b716..d575a63a51f 100644 --- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp +++ b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp @@ -617,8 +617,9 @@ bool DSE::handleEndBlock(BasicBlock &BB) { DeleteDeadInstruction(Dead, *MD, &DeadStackObjects); ++NumFastStores; MadeChange = true; - continue; } + + continue; } // Remove any dead non-memory-mutating instructions. |