[Mlir-commits] [mlir] 4b1d5b8 - [MLIR] Fix pipelineInitializationKey never being correctly updated (#150948)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Jul 28 07:47:15 PDT 2025


Author: Will Froom
Date: 2025-07-28T15:47:12+01:00
New Revision: 4b1d5b8d4f4d09e9988c0f5ca4a35957bf99235e

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

LOG: [MLIR] Fix pipelineInitializationKey never being correctly updated (#150948)

Prior to this change `pipelineInitializationKey` would never be updated
so `initialize` would always be called even if the pipeline didn't
change

Added: 
    

Modified: 
    mlir/lib/Pass/Pass.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Pass/Pass.cpp b/mlir/lib/Pass/Pass.cpp
index 0db9808b722a7..7094c8e279f2d 100644
--- a/mlir/lib/Pass/Pass.cpp
+++ b/mlir/lib/Pass/Pass.cpp
@@ -901,7 +901,7 @@ LogicalResult PassManager::run(Operation *op) {
     if (failed(initialize(context, impl->initializationGeneration + 1)))
       return failure();
     initializationKey = newInitKey;
-    pipelineKey = pipelineInitializationKey;
+    pipelineInitializationKey = pipelineKey;
   }
 
   // Construct a top level analysis manager for the pipeline.


        


More information about the Mlir-commits mailing list