[flang-commits] [flang] [flang][mlir][fir] Unroll inner loops in presence of user vectorizati… (PR #210820)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Wed Jul 22 04:08:18 PDT 2026
================
@@ -221,6 +229,11 @@ void createDefaultFIROptimizerPassPipeline(mlir::PassManager &pm,
if (pc.LoopVersioning)
pm.addPass(fir::createLoopVersioning());
+ if ((pc.OptLevel == llvm::OptimizationLevel::O2 ||
+ pc.OptLevel == llvm::OptimizationLevel::O3) &&
+ !isVPlanNativePathEnabled())
----------------
tblah wrote:
Maybe we should wait until vplan actually supports this? VPlan might have completely replaced the legacy cost model by then anyway.
But yes I completely agree that once this can be done in the loop vectorizer, it should be done there.
https://github.com/llvm/llvm-project/pull/210820
More information about the flang-commits
mailing list