Skip to content

Commit 4b1d5b8

Browse files
authored
[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
1 parent 33cc58f commit 4b1d5b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Pass/Pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ LogicalResult PassManager::run(Operation *op) {
901901
if (failed(initialize(context, impl->initializationGeneration + 1)))
902902
return failure();
903903
initializationKey = newInitKey;
904-
pipelineKey = pipelineInitializationKey;
904+
pipelineInitializationKey = pipelineKey;
905905
}
906906

907907
// Construct a top level analysis manager for the pipeline.

0 commit comments

Comments
 (0)