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

Will Froom llvmlistbot at llvm.org
Mon Jul 28 06:21:03 PDT 2025


https://github.com/WillFroom created https://github.com/llvm/llvm-project/pull/150948

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

>From b7fa80ff6f4e49f4cbe8562d009e88bb30c49d3b Mon Sep 17 00:00:00 2001
From: Will Froom <willfroom at google.com>
Date: Mon, 28 Jul 2025 13:19:14 +0000
Subject: [PATCH] [MLIR] Fix pipelineInitializationKey never being correctly
 updated

---
 mlir/lib/Pass/Pass.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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