We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22c265f commit d8acc58Copy full SHA for d8acc58
mlir/test/Transforms/remove-dead-values.mlir
@@ -499,6 +499,7 @@ module {
499
} ins(%arg0 : tensor<?xf32>) outs(%arg1 : tensor<1xf32>) {
500
^bb0(%in: f32, %out: f32):
501
%1 = arith.addf %in, %out : f32
502
+ %2 = arith.subf %1, %out : f32 // this should still be removed
503
linalg.yield %1 : f32
504
} -> tensor<1xf32>
505
return %0 : tensor<1xf32>
@@ -508,3 +509,4 @@ module {
508
509
// CHECK-LABEL: func @linalg_red_add
510
// CHECK: %[[yield:.*]] = arith.addf %{{.*}}, %{{.*}} : f32
511
// CHECK: linalg.yield %[[yield]] : f32
512
+// CHECK-NOT: arith.subf
0 commit comments