[PATCH] D29149: NewGVN: Add basic dead store elimination

Daniel Berlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 25 14:26:00 PST 2017


dberlin created this revision.

This adds basic dead store elimination to NewGVN.  Unlike our current
DSE, it will happily do cross-block DSE if it meets our requirements.

We get a bunch of DSE's simple.ll cases, and some stuff it doesn't.
Unlike DSE, however, we only try to eliminate stores of the same value
to the same memory location, not just general stores to the same
memory location.


https://reviews.llvm.org/D29149

Files:
  lib/Transforms/Scalar/NewGVN.cpp
  test/Transforms/NewGVN/deadstore.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29149.85808.patch
Type: text/x-patch
Size: 12829 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170125/ea656afd/attachment.bin>


More information about the llvm-commits mailing list