[PATCH] D79391: [DSE] Remove noop stores in MSSA.

Zoe Carver via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 4 21:02:06 PDT 2020


zoecarver created this revision.
zoecarver added reviewers: fhahn, jfb.
Herald added subscribers: llvm-commits, dexonsmith, hiraditya, Prazek.
Herald added a project: LLVM.

Adds a simple fast-path check for the pattern:

  v = load ptr
  store v to ptr

I took the tests from the bugzilla post, I can add more if needed (but I think these should be sufficent).

Refs: https://bugs.llvm.org/show_bug.cgi?id=45795


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79391

Files:
  llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
  llvm/test/Transforms/DeadStoreElimination/MSSA/simple.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79391.262001.patch
Type: text/x-patch
Size: 8288 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200505/b0cd41f3/attachment.bin>


More information about the llvm-commits mailing list