@@ -198,8 +198,7 @@ util.func public @attention_dynamic(%arg0: tensor<?x?x?xf16>, %arg1: tensor<?x?x
198198// CHECK-DAG: %[[D2:.+]] = tensor.dim %[[ARG0]], %[[C2]]
199199// CHECK-DAG: %[[D4:.+]] = tensor.dim %[[ARG2]], %[[C2]]
200200// CHECK-DAG: %[[SPLIT0:.+]] = arith.divui %[[D0]]
201- // CHECK-DAG: %[[VAL:.+]] = affine.apply affine_map<()[s0] -> (s0 floordiv 2)>()[%[[D0]]]
202- // CHECK-DAG: %[[EMPTY:.+]] = tensor.empty(%[[VAL]], %[[D1]], %[[D4]]) : tensor<2x?x?x?xf16>
201+ // CHECK-DAG: %[[EMPTY:.+]] = tensor.empty(%[[SPLIT0]], %[[D1]], %[[D4]]) : tensor<2x?x?x?xf16>
203202// CHECK-DAG: %[[QUERY:.+]] = tensor.expand_shape %[[ARG0]] {{\[}}[0, 1], [2], [3]{{\]}} output_shape [2, %[[SPLIT0]], %[[D1]], %[[D2]]]
204203// CHECK-DAG: %[[D5:.+]] = tensor.dim %[[ARG1]], %[[C0]]
205204// CHECK-DAG: %[[D6:.+]] = tensor.dim %[[ARG1]], %[[C1]]
@@ -264,8 +263,7 @@ util.func public @attention_dynamic_masked(%arg0: tensor<?x?x?xf16>, %arg1: tens
264263// CHECK-DAG: %[[D2:.+]] = tensor.dim %[[ARG0]], %[[C2]]
265264// CHECK-DAG: %[[D4:.+]] = tensor.dim %[[ARG2]], %[[C2]]
266265// CHECK-DAG: %[[SPLIT0:.+]] = arith.divui %[[D0]]
267- // CHECK-DAG: %[[VAL:.+]] = affine.apply affine_map<()[s0] -> (s0 floordiv 2)>()[%[[D0]]]
268- // CHECK-DAG: %[[EMPTY:.+]] = tensor.empty(%[[VAL]], %[[D1]], %[[D4]]) : tensor<2x?x?x?xf16>
266+ // CHECK-DAG: %[[EMPTY:.+]] = tensor.empty(%[[SPLIT0]], %[[D1]], %[[D4]]) : tensor<2x?x?x?xf16>
269267// CHECK-DAG: %[[QUERY:.+]] = tensor.expand_shape %[[ARG0]] {{\[}}[0, 1], [2], [3]{{\]}} output_shape [2, %[[SPLIT0]], %[[D1]], %[[D2]]]
270268// CHECK-DAG: %[[D5:.+]] = tensor.dim %[[ARG1]], %[[C0]]
271269// CHECK-DAG: %[[D6:.+]] = tensor.dim %[[ARG1]], %[[C1]]
0 commit comments