[PATCH] D132365: [DSE] Support looking through memory phis at end of function.
Alina Sbirlea via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 29 12:12:56 PDT 2022
asbirlea accepted this revision.
asbirlea added a comment.
This revision is now accepted and ready to land.
Thank you for adding this. The diff looks good to me.
The stats and compile-time look very good. Tested for run time performance impact and can't see noticeable improvement.
Overall LGTM from my side (with one inline comment).
================
Comment at: llvm/test/Transforms/DeadStoreElimination/phi-translation.ll:159
; TODO: The store in %entry can be removed by translating %p through the phi.
define void @memoryphi_translate_5(i1 %cond) {
----------------
fhahn wrote:
> nikic wrote:
> > Drop TODO
> Thanks, should be removed in the latest version.
The TODO is unrelated to this patch and should stay.
The store in the %entry block could also be removed. It's writing to an alloca that it's either never used later in this function or overwritten and then used in the call. Either way it's a dead store.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132365/new/
https://reviews.llvm.org/D132365
More information about the llvm-commits
mailing list