]> granicus.if.org Git - llvm/commit
Merging r323759:
authorHans Wennborg <hans@hanshq.net>
Fri, 2 Feb 2018 13:44:37 +0000 (13:44 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 2 Feb 2018 13:44:37 +0000 (13:44 +0000)
commit7e8d1e7421f89de424e8ddf40d1948588e0dc3e9
tree5782cb17ec2084158476340c96a93a2fe678a682
parent240f1f3d602bc77d4ee810653042307bb5f734b9
Merging r323759:
------------------------------------------------------------------------
r323759 | spatel | 2018-01-30 14:53:59 +0100 (Tue, 30 Jan 2018) | 10 lines

[DSE] make sure memory is not modified before partial store merging (PR36129)

We missed a critical check in D30703. We must make sure that no intermediate
store is sitting between the stores that we want to merge.

This should fix:
https://bugs.llvm.org/show_bug.cgi?id=36129

Differential Revision: https://reviews.llvm.org/D42663

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_60@324086 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/DeadStoreElimination.cpp
test/Transforms/DeadStoreElimination/merge-stores.ll