OSDN Git Service

[DSE] make sure memory is not modified before partial store merging (PR36129)
authorSanjay Patel <spatel@rotateright.com>
Tue, 30 Jan 2018 13:53:59 +0000 (13:53 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 30 Jan 2018 13:53:59 +0000 (13:53 +0000)
commit771594b9ab02241dec7c254f490eb701b62de070
treebe129d343f0a4d14c251dee3fe6e2da3dae75fb9
parentfcdc4c0273c4f87849c54dc300e46f53494a13cc
[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/trunk@323759 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/DeadStoreElimination.cpp
test/Transforms/DeadStoreElimination/merge-stores.ll