[llvm] [LoopInterchange] Supported Imperfect Loop Nests (PR #199511)

Ryotaro Kasuga via llvm-commits llvm-commits at lists.llvm.org
Mon May 25 05:30:48 PDT 2026


https://github.com/kasuga-fj commented:

(Initial quick review. I haven't checked the details).

First, could you please split the PR into two parts? The first one should simply add the testcase you want to improve (imperfect-loop-nest.ll), and then you can create a second PR on top of it. This makes it easier to review what your changes actually affect. Note that this workflow (committing a testcase at first, then submitting a PR that modifies the testcase) is common practice in LLVM. Please refer to [Stacked Pull Requests](https://llvm.org/docs/GitHub.html#stacked-pull-requests) if necessary.

The current PR description only states the problem, but it doesn't explain how the patch addresses it. I personally think it's fine to omit that part when the approach is trivial, but in this case I don't think it is. Could you please update the PR description to include how this patch resolves the issue?

Although I haven't thought it through carefully yet, my impression is that this issue is not simple enough to be resolved with a single patch. Just to note, please also keep in mind the option of splitting the patch if needed.

https://github.com/llvm/llvm-project/pull/199511


More information about the llvm-commits mailing list