[DSE] Remove dead stores in end blocks containing fence
authorAnna Thomas <anna@azul.com>
Thu, 7 Jul 2016 20:51:42 +0000 (20:51 +0000)
committerAnna Thomas <anna@azul.com>
Thu, 7 Jul 2016 20:51:42 +0000 (20:51 +0000)
commit6a78c78a03d8426afc6b5203813ec4b11d9e8df2
tree267272193c28e681f3b13ac54d6b971dd75c3341
parenta7e11a5d34117e5fd26b4aa028f0ac0c5ec29cb4
[DSE] Remove dead stores in end blocks containing fence

We can remove dead stores in the presence of fence instructions. Fence
does not change an otherwise thread local store to visible.

reviewers: reames, dexonsmith, jfb
Differential Revision: http://reviews.llvm.org/D22001

llvm-svn: 274795
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
llvm/test/Transforms/DeadStoreElimination/fence.ll