[PATCH] D98287: [DSE] Queue non-memory dead instructions for later removal.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 9 12:52:46 PST 2021


fhahn created this revision.
fhahn added reviewers: asbirlea, nikic, ebrevnov.
Herald added a subscriber: hiraditya.
fhahn requested review of this revision.
Herald added a project: LLVM.

This patch updates DSE's removal strategy to initially only remove the
memory instruction and queue now-dead operands for later removal.

This is required to enable PHI translation while looking for candidates
for removal, because the translated result may reference IR instructions
that would get removed before being used.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98287

Files:
  llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98287.329448.patch
Type: text/x-patch
Size: 4170 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210309/70f0155e/attachment.bin>


More information about the llvm-commits mailing list