[flang-commits] [flang] [Flang] Add opt-in affine loop optimization pipeline (PR #191854)
via flang-commits
flang-commits at lists.llvm.org
Tue Apr 14 01:57:11 PDT 2026
shuyadav-dev wrote:
Hi @vzakhari, yes, this PR is ready for review.
Backstory: This work started from investigating why MLIR's existing affine loop optimizations (tiling, fusion, etc.) were not usable on Fortran loops compiled through Flang. During that investigation, we identified several gaps between the FIR generated by Flang and the requirements of the affine optimization infrastructure and this PR is an attempt to address those gaps and enabling affine optimizations to work on real‑world Fortran loop nests in an opt‑in manner.
The full design is described in the RFC:
https://discourse.llvm.org/t/rfc-flang-mlir-add-opt-in-affine-loop-optimization-pipeline/90526
https://github.com/llvm/llvm-project/pull/191854
More information about the flang-commits
mailing list