The only way to do this with the current hoisting strategy is by lowering Affine to Scf first, but that prevents further passes on Affine. Differential Revision: https://reviews.llvm.org/D137600
Multi-Level Intermediate Representation
See https://mlir.llvm.org/ for more information.