[Mlir-commits] [mlir] [MLIR][Arith] Partially fold and / or / xor const tripples (PR #195588)
Hocky Yudhiono
llvmlistbot at llvm.org
Mon May 4 02:45:26 PDT 2026
hockyy wrote:
Actually, I'm quite curious about tree like operations like these:
```
func.func @t(%a : i32, %b : i32) -> i32 {
%c = arith.constant -7 : i32
%d = arith.constant -2 : i32
%0 = arith.andi %a, %c : i32
%1 = arith.andi %b, %d : i32
%2 = arith.andi %0, %1 : i32
return %2 : i32
}
```
is it possible for us to like construct a pass that is able to sort commutativity
https://github.com/llvm/llvm-project/pull/195588
More information about the Mlir-commits
mailing list