diff --git a/compiler/src/iree/compiler/GlobalOptimization/PropagateLinalgTranspose.cpp b/compiler/src/iree/compiler/GlobalOptimization/PropagateLinalgTranspose.cpp index 265ddbbc5890..af54017adb93 100644 --- a/compiler/src/iree/compiler/GlobalOptimization/PropagateLinalgTranspose.cpp +++ b/compiler/src/iree/compiler/GlobalOptimization/PropagateLinalgTranspose.cpp @@ -1104,8 +1104,11 @@ void PropagateLinalgTransposePass::runOnOperation() { context, /*benefit=*/2); bubblingPatterns.insert(context); populateCommonCanonicalizationPatterns(context, bubblingPatterns); - if (failed(applyPatternsAndFoldGreedily(funcOp, - std::move(bubblingPatterns)))) { + + GreedyRewriteConfig config; + config.maxIterations = GreedyRewriteConfig::kNoLimit; + if (failed(applyPatternsAndFoldGreedily(funcOp, std::move(bubblingPatterns), + config))) { funcOp.emitError("Transpose bubbling patterns failed"); return signalPassFailure(); }