Skip to content

Commit d71276d

Browse files
committed
[DispatchCreation] Update LIT test after llvm/llvm-project#137963
Signed-off-by: Artem Gindinson <[email protected]>
1 parent aacf93a commit d71276d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

compiler/src/iree/compiler/DispatchCreation/test/attention_fuse_by_expansion.mlir

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -583,14 +583,13 @@ util.func @scatter_collapse_original_partial(%arg0: tensor<?x1x32x8x128xf16>, %a
583583
// CHECK-SAME: %[[ARG0:[a-zA-Z0-9]+]]:
584584
// CHECK-SAME: %[[ARG1:[a-zA-Z0-9]+]]:
585585
// CHECK-SAME: %[[ARG2:[a-zA-Z0-9]+]]:
586-
// CHECK-DAG: %[[UPDATES:.+]] = tensor.expand_shape %[[ARG0]] {{.*}} tensor<?x1x32x8x128xf16> into tensor<?x1x2x16x4x2x64x2xf16>
587-
// TODO(IanWood1): fix this so the collapse folds with the expand
588-
// CHECK-DAG: %[[ORIGINAL:.+]] = tensor.expand_shape {{.*}} tensor<?x32x8x128xf16> into tensor<?x2x16x4x2x64x2xf16>
586+
// CHECK-DAG: %[[EXPAND:.+]] = tensor.expand_shape %[[ARG0]] {{.*}} tensor<?x1x32x8x128xf16> into tensor<?x1x2x16x4x2x64x2xf16>
587+
// CHECK-DAG: %[[COLLAPSE:.+]] = tensor.collapse_shape %[[ARG2]] {{.*}} tensor<5x?x2x16x4x2x64x2xf16> into tensor<?x2x16x4x2x64x2xf16>
589588
// CHECK: %[[SCATTER:.+]] = iree_linalg_ext.scatter
590-
// CHECK-SAME: ins(%[[UPDATES]], %[[ARG1]]
591-
// CHECK-SAME: outs(%[[ORIGINAL]]
592-
// CHECK: %[[COLLAPSE:.+]] = tensor.collapse_shape %[[SCATTER]]
593-
// CHECK: util.return %[[COLLAPSE]]
589+
// CHECK-SAME: ins(%[[EXPAND]], %[[ARG1]]
590+
// CHECK-SAME: outs(%[[COLLAPSE]]
591+
// CHECK: %[[RES_COLLAPSE:.+]] = tensor.collapse_shape %[[SCATTER]]
592+
// CHECK: util.return %[[RES_COLLAPSE]]
594593

595594
// -----
596595

0 commit comments

Comments
 (0)