[PATCH] D77736: [DSE] Lift post-dominance for objs not accessible in caller.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 8 08:39:59 PDT 2020
fhahn created this revision.
fhahn added reviewers: dmgreen, bryant, asbirlea, Tyker, efriedma, george.burgess.iv.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
We can eliminate MemoryDefs of objects not accessible after the function
returns (e.g. alloca), if there are no reads between the MemoryDef and
any function exits. We can stop traversing paths that completely
overwrite the memory location of the MemoryDef.
This patch was split off D73763 <https://reviews.llvm.org/D73763>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77736
Files:
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
llvm/test/Transforms/DeadStoreElimination/MSSA/memset-missing-debugloc.ll
llvm/test/Transforms/DeadStoreElimination/MSSA/memset-unknown-sizes.ll
llvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-malloc-free.ll
llvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-memintrinsics.ll
llvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-multipath.ll
llvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-simple.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77736.256031.patch
Type: text/x-patch
Size: 16465 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200408/f51245c0/attachment.bin>
More information about the llvm-commits
mailing list