[RFC] Add FIR->Affine(optimization)->FIR pass pipeline

My main interest is in performing advanced optimizations on Affine. OpenMP is just one example to demonstrate the effectiveness of this approach.

Currently, some passes are still under development(like affine-promotion pass). The goal is to gradually fix these passes and eventually remove --enable-affine-opt flag.

I’m also very interested in performing various loop optimizations or even polyhedral optimizations in Affine. The top priority is to enable the conversion of as many loop forms in Fortran as possible into Affine.

2 Likes