[Mlir-commits] [mlir] [MLIR] Fix pipelineInitializationKey never being correctly updated (PR #150948)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Jul 28 06:21:37 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Will Froom (WillFroom)
<details>
<summary>Changes</summary>
Prior to this change `pipelineInitializationKey` would never be updated so `initialize` would always be called even if the pipeline didn't change
---
Full diff: https://github.com/llvm/llvm-project/pull/150948.diff
1 Files Affected:
- (modified) mlir/lib/Pass/Pass.cpp (+1-1)
``````````diff
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.
``````````
</details>
https://github.com/llvm/llvm-project/pull/150948
More information about the Mlir-commits
mailing list