[flang-commits] [flang] [llvm] [flang] Support static-unit array slices in FIR LoopVersioning (PR #222723)

via flang-commits flang-commits at lists.llvm.org
Fri Sep 18 12:51:48 PDT 2026


https://github.com/jeanPerier commented:

Hi, thanks for working on improving this optimization pass.

I stopped in the middle of the review because I think the solution you have adds a lot of complexity in the pass and I do not think this is needed to tackle the problem of slice with unit strides where it is mostly a matter of only applying the slice lower bounds inside the new indices.

Here for instance a solution that seems much simpler and that I built with Claude based on your PR: https://github.com/jeanPerier/llvm-project/commit/3caa786564668b32ec78b664e1a0555d3b781efe

 

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


More information about the flang-commits mailing list