[PATCH] D84951: [LV] Try to sink users recursively for first-order recurrences.
Ayal Zaks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 12 05:34:19 PDT 2021
Ayal added a comment.
How about making SinkAfter a MapVector instead of DenseMap (to have its iteration order match insertion order) and insert interdependent sink candidates in the desired order?
How about traversing all insns from phi to previous, in order, checking if any is using the phi or a prior insn that was sunk? E.g., by maintaining the set of their users.
This might be clearer, and avoid the sorting.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84951/new/
https://reviews.llvm.org/D84951
More information about the llvm-commits
mailing list