[Mlir-commits] [mlir] [mlir][arith] Fold min/max with absorption and redundancy (PR #160224)
Jakub Kuderski
llvmlistbot at llvm.org
Sun Sep 28 06:46:19 PDT 2025
================
@@ -2101,6 +2237,24 @@ func.func @test_minimumf(%arg0 : f32) -> (f32, f32, f32) {
return %0, %1, %2 : f32, f32, f32
}
+// CHECK-LABEL: foldMinimumfMinimumf1
+// CHECK: %[[MINF:.*]] = arith.minimumf %arg1, %arg0 : f32
+// CHECK: return %[[MINF]] : f32
+func.func public @foldMinimumfMinimumf1(%arg0: f32, %arg1: f32) -> f32 {
----------------
kuhar wrote:
We don't need this `public` here and elsewhere
https://github.com/llvm/llvm-project/pull/160224
More information about the Mlir-commits
mailing list