[Mlir-commits] [mlir] [mlir][Transforms] Greedy pattern rewriter: fix infinite folding loop (PR #161145)

Mehdi Amini llvmlistbot at llvm.org
Tue Sep 30 06:20:08 PDT 2025


joker-eph wrote:

The issue is that this isn't necessarily about the immediate operands:
```
%sub = subi %add, %cst
%add = addi %div , %cst
```

A folder on `addi` here could replace itself with itself.

https://github.com/llvm/llvm-project/pull/161145


More information about the Mlir-commits mailing list