[llvm] [LoopInterchange] Extract statically bounded outer epilogues (PR #224196)
Madhur Amilkanthwar via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 8 08:14:09 PDT 2026
madhur13490 wrote:
> Sorry for the long delay. Before going into line-level comments, I'd like to settle a few high-level points, since they would change the shape of the patch significantly.
>
> If I understand correctly, this patch aims at a fairly large change, which I think is too large for a single PR. Instead, I'd suggest splitting it into smaller PRs (I believe you're free to use whatever tool you like to manage stacked PRs). In other words, I'm suggesting [incremental development](https://llvm.org/docs/DeveloperPolicy.html#incremental-development): start with an MVP. It may be too limited to achieve the performance improvement you mentioned on its own, but it would be much easier to review, and I believe it would make the whole effort go more smoothly. In my humble opinion, a good first step would be to start with the case where the epilogue consists of at most one basic block and uses only the outer-loop IV and loop-invariant values. In that case, no rematerialization is needed, and the dependences between the nest and the epilogue can be checked using only the results of DependenceAnalysis?
>
> Please let me know if I've misunderstood anything significant. I'm also open to other opinions if you have any.
yes, I support this. Breaking into a series of PRs would allow us to focus more effectively. (I am busy at the moment and I have a travel coming in next few days but I do plan to come to this)
https://github.com/llvm/llvm-project/pull/224196
More information about the llvm-commits
mailing list