[PATCH] D73758: Conservative fix for DSE across loops
Karl Rehm via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 30 18:05:45 PST 2020
DefCon42 created this revision.
Herald added subscribers: llvm-commits, asbirlea, george.burgess.iv, hiraditya.
Herald added a project: LLVM.
DefCon42 abandoned this revision.
DefCon42 added a comment.
Looks like @fhahn posted a proper fix for this almost at the exact same time that I posted this one. Heh.
This is essentially just https://reviews.llvm.org/D68006 with a few fixes for the comments.
To address the last comment about the CFG visiting: This simply prevents DSE from analyzing through back-edges (and instead assuming memory modification) because it had the potential to break certain types of loops. I heard somewhere that there will be a proper fix for this in @fhahn 's MemorySSA-backed DSE, so this is essentially a band-aid I suppose.
Don't know who to tag for this, sorry.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73758
Files:
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73758.241619.patch
Type: text/x-patch
Size: 9029 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200131/beef29d6/attachment.bin>
More information about the llvm-commits
mailing list