[PATCH] D91481: [LoopUnroll] Discount uniform instructions in cost models
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 26 15:28:29 PDT 2021
nikic added a comment.
> The reasoning here is that such an expression (as determined by SCEV) will be CSEd once the loop is unrolled.
Is that really the case? I don't think unrolling itself does any CSE, and runtime unrolling is run at the very end of the pipeline, so we don't have any EarlyCSE or GVN passes after it.
Also, the converse question: Why have invariant instructions not been hoisted by LICM before unrolling is reached?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91481/new/
https://reviews.llvm.org/D91481
More information about the llvm-commits
mailing list