[PATCH] D72410: [DSE] Eliminate stores by terminators (free,lifetime.end).
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 8 12:51:11 PST 2020
fhahn created this revision.
fhahn added reviewers: dmgreen, rnk, efriedma, bryant, asbirlea, Tyker.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
fhahn added a parent revision: D72148: [DSE] Support traversing MemoryPhis..
This patch adds support for eliminating stores by free & lifetime.end
calls. We can remove stores that are not read before calling a memory
terminator and we can eliminate all stores after a memory terminator
until we see a new lifetime.start. The second case seems to not really
trigger much in practice though.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D72410
Files:
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
llvm/test/Transforms/DeadStoreElimination/MSSA/free.ll
llvm/test/Transforms/DeadStoreElimination/MSSA/lifetime.ll
llvm/test/Transforms/DeadStoreElimination/MSSA/simple.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72410.236893.patch
Type: text/x-patch
Size: 10876 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200108/0981b779/attachment.bin>
More information about the llvm-commits
mailing list