[llvm] ae8c85c - [Passes] Remove LoopInterchange from O1 pipeline (#145071)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 23 00:11:06 PDT 2025


Author: Nikita Popov
Date: 2025-06-23T09:11:03+02:00
New Revision: ae8c85c9ce89ad224a1b34888c6fa7d56ad5f453

URL: https://github.com/llvm/llvm-project/commit/ae8c85c9ce89ad224a1b34888c6fa7d56ad5f453
DIFF: https://github.com/llvm/llvm-project/commit/ae8c85c9ce89ad224a1b34888c6fa7d56ad5f453.diff

LOG: [Passes] Remove LoopInterchange from O1 pipeline (#145071)

This is a fairly exotic pass, I don't think it makes a lot of sense to
run it at O1, esp. as vectorization wouldn't run at O1 anyway.

Added: 
    

Modified: 
    llvm/lib/Passes/PassBuilderPipelines.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Passes/PassBuilderPipelines.cpp b/llvm/lib/Passes/PassBuilderPipelines.cpp
index a99146d5eaa34..b0cdd1b94e565 100644
--- a/llvm/lib/Passes/PassBuilderPipelines.cpp
+++ b/llvm/lib/Passes/PassBuilderPipelines.cpp
@@ -501,9 +501,6 @@ PassBuilder::buildO1FunctionSimplificationPipeline(OptimizationLevel Level,
 
   LPM2.addPass(LoopDeletionPass());
 
-  if (PTO.LoopInterchange)
-    LPM2.addPass(LoopInterchangePass());
-
   // Do not enable unrolling in PreLinkThinLTO phase during sample PGO
   // because it changes IR to makes profile annotation in back compile
   // inaccurate. The normal unroller doesn't pay attention to forced full unroll


        


More information about the llvm-commits mailing list