[llvm] [Passes] Run IndVars after late partial unrolling. (PR #81275)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 9 12:12:59 PST 2024
nikic wrote:
We already run the "core" part of IndVarSimplify via simplifyLoopIVs() in simplifyLoopAfterUnroll(). It sounds like the part you additionally want in your test case is the replaceCongruentIVs() optimization? Would it make more sense to call that from simplifyLoopIVs()?
Is your test case representative of the actual optimization you're trying to achieve? It doesn't look very compelling to me, as this seems like the kind of thing that LSR would fix up anyway.
https://github.com/llvm/llvm-project/pull/81275
More information about the llvm-commits
mailing list