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 | 6e4be237b076168167ad21d7cb46a70c17c59f5f (patch) | |
tree | f6d437eb1614d00723bffb7aecac8462390a79eb /lib/Transforms | |
parent | 9942acab0a42755637a682308c8262b88cbbb9e9 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138809 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/DeadStoreElimination.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/DeadStoreElimination.cpp b/lib/Transforms/Scalar/DeadStoreElimination.cpp index 8559147b71..d575a63a51 100644 --- a/lib/Transforms/Scalar/DeadStoreElimination.cpp +++ b/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. |