[Mlir-commits] [mlir] [mlir] Fix non-termination when a block becomes unreachable during rewriting (PR #221152)
Mehdi Amini
llvmlistbot at llvm.org
Fri Sep 11 13:48:02 PDT 2026
================
@@ -482,6 +482,15 @@ bool GreedyPatternRewriteDriver::processWorklist() {
}
});
+ // Folding an operation that uses its own result can loop forever, so
+ // skip it. Such operations are legal in unreachable code.
----------------
joker-eph wrote:
How does your test behave now that : https://github.com/llvm/llvm-project/pull/189232 is merged?
https://github.com/llvm/llvm-project/pull/221152
More information about the Mlir-commits
mailing list