Skip to content

Commit d8acc58

Browse files
committed
Update test
1 parent 22c265f commit d8acc58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mlir/test/Transforms/remove-dead-values.mlir

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ module {
499499
} ins(%arg0 : tensor<?xf32>) outs(%arg1 : tensor<1xf32>) {
500500
^bb0(%in: f32, %out: f32):
501501
%1 = arith.addf %in, %out : f32
502+
%2 = arith.subf %1, %out : f32 // this should still be removed
502503
linalg.yield %1 : f32
503504
} -> tensor<1xf32>
504505
return %0 : tensor<1xf32>
@@ -508,3 +509,4 @@ module {
508509
// CHECK-LABEL: func @linalg_red_add
509510
// CHECK: %[[yield:.*]] = arith.addf %{{.*}}, %{{.*}} : f32
510511
// CHECK: linalg.yield %[[yield]] : f32
512+
// CHECK-NOT: arith.subf

0 commit comments

Comments
 (0)