[llvm] [Passes] Generalize ShouldRunExtraVectorPasses to allow re-use (NFCI). (PR #118323)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 2 13:15:02 PST 2024


================
@@ -1328,8 +1328,8 @@ void PassBuilder::addVectorPasses(OptimizationLevel Level,
     ExtraPasses.addPass(
         SimplifyCFGPass(SimplifyCFGOptions().convertSwitchRangeToICmp(true)));
     ExtraPasses.addPass(InstCombinePass());
-    FPM.addPass(std::move(ExtraPasses));
   }
+  FPM.addPass(std::move(ExtraPasses));
----------------
nikic wrote:

Why this move?

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


More information about the llvm-commits mailing list