[PATCH] D72700: [DSE] Add first version of MemorySSA-backed DSE (Bottom up walk).
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 09:34:55 PST 2020
fhahn planned changes to this revision.
fhahn added a comment.
In D72700#1824724 <https://reviews.llvm.org/D72700#1824724>, @Tyker wrote:
> In D72700#1822594 <https://reviews.llvm.org/D72700#1822594>, @asbirlea wrote:
>
> > Regarding handling the branching example, the solution fhahn proposes sounds reasonable to me.
> > I was thinking something similar, along the lines of: do the checks bottom-up from both second and third stores during the main algorithm, both find the dead store but do not postdominate it; don't abandon them, but keep this info (include the checks for no intervening reads) for after the main search. The data structure could be a Hashmap<PotentialDeadStore, ListOfDefsOrBlocksWhoFoundThisPotentialDeadStore>. If all paths are covered in the List for a PotentialDeadStore, then it's truly dead.
>
>
> this seems like it should work.
Sounds good! I'll update this patch in the next few days to improve the read-clobber checks as suggested. I'll update the follow on patches to work with the bottom-up approach as well.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72700/new/
https://reviews.llvm.org/D72700
More information about the llvm-commits
mailing list