Skip to content

Commit d9f45c1

Browse files
committed
simplify test ir
1 parent cb30613 commit d9f45c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/test/Conversion/VectorToSCF/vector-to-scf.mlir

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,10 +558,9 @@ func.func @vector_print_vector_0d(%arg0: vector<f32>) {
558558
// CHECK-SAME: %[[VEC:.*]]: vector<f32>) {
559559
// CHECK-DAG: %[[C0:.*]] = arith.constant 0 : index
560560
// CHECK-DAG: %[[C1:.*]] = arith.constant 1 : index
561-
// CHECK: %[[FLAT_VEC:.*]] = vector.shape_cast %[[VEC]] : vector<f32> to vector<1xf32>
562561
// CHECK: vector.print punctuation <open>
563562
// CHECK: scf.for %[[IDX:.*]] = %[[C0]] to %[[C1]] step %[[C1]] {
564-
// CHECK: %[[EL:.*]] = vector.extract %[[FLAT_VEC]][%[[IDX]]] : f32 from vector<1xf32>
563+
// CHECK: %[[EL:.*]] = vector.extract %[[VEC]][] : f32 from vector<f32>
565564
// CHECK: vector.print %[[EL]] : f32 punctuation <no_punctuation>
566565
// CHECK: %[[IS_NOT_LAST:.*]] = arith.cmpi ult, %[[IDX]], %[[C0]] : index
567566
// CHECK: scf.if %[[IS_NOT_LAST]] {

0 commit comments

Comments
 (0)