[Mlir-commits] [mlir] [mlir][arith] Fold min/max with absorption and redundancy (PR #160224)
Jakub Kuderski
llvmlistbot at llvm.org
Tue Sep 23 06:56:16 PDT 2025
================
@@ -1984,6 +1984,40 @@ func.func @test_maxsi2(%arg0 : i8) -> (i8, i8, i8, i8) {
return %0, %1, %2, %3: i8, i8, i8, i8
}
+// CHECK-LABEL: foldMaxsiMaxsi1
+// CHECK: %[[MAXSI:.*]] = arith.maxsi %arg1, %arg0 : i32
+// CHECK: return %[[MAXSI]] : i32
+func.func public @foldMaxsiMaxsi1(%arg0: i32, %arg1: i32) -> i32 {
----------------
kuhar wrote:
Can you drop `public` from these functions? We don't need it.
https://github.com/llvm/llvm-project/pull/160224
More information about the Mlir-commits
mailing list