[flang-commits] [flang] [llvm] [polly] [Passes] Replace OptimizationLevel with an enum (PR #209424)

Matt Arsenault via flang-commits flang-commits at lists.llvm.org
Tue Jul 14 03:10:02 PDT 2026


================
@@ -570,7 +570,7 @@ PassBuilder::buildO1FunctionSimplificationPipeline(OptimizationLevel Level,
   // attention to it.
   if (!isThinLTOPreLink(Phase) || !PGOOpt ||
       PGOOpt->Action != PGOOptions::SampleUse)
-    LPM2.addPass(LoopFullUnrollPass(Level.getSpeedupLevel(),
+    LPM2.addPass(LoopFullUnrollPass(static_cast<int>(Level),
----------------
arsenm wrote:

Should LoopFullUnrollPass's constructor change to use the enum?

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


More information about the flang-commits mailing list