@@ -2133,7 +2133,7 @@ def forfoo(ivs):
21332133    # CHECK:  %[[VAL_0:.*]] = arith.constant 1 : index 
21342134    # CHECK:  %[[VAL_1:.*]] = arith.constant 2 : index 
21352135    # CHECK:  %[[VAL_2:.*]] = arith.constant 3 : index 
2136-     # CHECK:  scf.forall (%[[VAL_3:.*]]) = (1 ) to (2 ) step (3 ) { 
2136+     # CHECK:  scf.forall (%[[VAL_3:.*]]) = (%[[VAL_0]] ) to (%[[VAL_1]] ) step (%[[VAL_2]] ) { 
21372137    # CHECK:    %[[VAL_4:.*]] = arith.constant 1.000000e+00 : f32 
21382138    # CHECK:  } 
21392139
@@ -2153,7 +2153,7 @@ def forfoo(iv1, iv2):
21532153    # CHECK:  %[[VAL_3:.*]] = arith.constant 2 : index 
21542154    # CHECK:  %[[VAL_4:.*]] = arith.constant 3 : index 
21552155    # CHECK:  %[[VAL_5:.*]] = arith.constant 3 : index 
2156-     # CHECK:  scf.forall (%[[VAL_6:.*]], %[[VAL_7:.*]]) = (1, 1 ) to (2, 2 ) step (3, 3 ) { 
2156+     # CHECK:  scf.forall (%[[VAL_6:.*]], %[[VAL_7:.*]]) = (%[[VAL_0]], %[[VAL_1]] ) to (%[[VAL_2]], %[[VAL_3]] ) step (%[[VAL_4]], %[[VAL_5]] ) { 
21572157    # CHECK:    %[[VAL_8:.*]] = arith.constant 1.000000e+00 : f32 
21582158    # CHECK:  } 
21592159
@@ -2184,7 +2184,7 @@ def forfoo(i, j, shared_outs):
21842184    # CHECK:  %[[VAL_4:.*]] = arith.constant 2 : index 
21852185    # CHECK:  %[[VAL_5:.*]] = arith.constant 3 : index 
21862186    # CHECK:  %[[VAL_6:.*]] = arith.constant 3 : index 
2187-     # CHECK:  %[[VAL_7:.*]] = scf.forall (%[[VAL_8:.*]], %[[VAL_9:.*]]) = (1, 1 ) to (2, 2 ) step (3, 3 ) shared_outs(%[[VAL_10:.*]] = %[[VAL_0]]) -> (tensor<10x10xi32>) { 
2187+     # CHECK:  %[[VAL_7:.*]] = scf.forall (%[[VAL_8:.*]], %[[VAL_9:.*]]) = (%[[VAL_1]], %[[VAL_2]] ) to (%[[VAL_3]], %[[VAL_4]] ) step (%[[VAL_5]], %[[VAL_6]] ) shared_outs(%[[VAL_10:.*]] = %[[VAL_0]]) -> (tensor<10x10xi32>) { 
21882188    # CHECK:    %[[VAL_11:.*]] = arith.constant 1.000000e+00 : f32 
21892189    # CHECK:    scf.forall.in_parallel { 
21902190    # CHECK:      tensor.parallel_insert_slice %[[VAL_0]] into %[[VAL_10]]{{\[}}%[[VAL_8]], %[[VAL_9]]] [10, 10] [1, 1] : tensor<10x10xi32> into tensor<10x10xi32> 
@@ -2218,7 +2218,7 @@ def forfoo(i, j, shared_outs):
22182218    # CHECK:  %[[VAL_4:.*]] = arith.constant 2 : index 
22192219    # CHECK:  %[[VAL_5:.*]] = arith.constant 3 : index 
22202220    # CHECK:  %[[VAL_6:.*]] = arith.constant 3 : index 
2221-     # CHECK:  %[[VAL_7:.*]] = scf.forall (%[[VAL_8:.*]], %[[VAL_9:.*]]) = (1, 1 ) to (2, 2 ) step (3, 3 ) shared_outs(%[[VAL_10:.*]] = %[[VAL_0]]) -> (tensor<10x10xi32>) { 
2221+     # CHECK:  %[[VAL_7:.*]] = scf.forall (%[[VAL_8:.*]], %[[VAL_9:.*]]) = (%[[VAL_1]], %[[VAL_2]] ) to (%[[VAL_3]], %[[VAL_4]] ) step (%[[VAL_5]], %[[VAL_6]] ) shared_outs(%[[VAL_10:.*]] = %[[VAL_0]]) -> (tensor<10x10xi32>) { 
22222222    # CHECK:    %[[VAL_11:.*]] = arith.constant 1.000000e+00 : f32 
22232223    # CHECK:    scf.forall.in_parallel { 
22242224    # CHECK:      tensor.parallel_insert_slice %[[VAL_0]] into %[[VAL_10]]{{\[}}%[[VAL_8]], %[[VAL_9]]] [10, 10] [1, 1] : tensor<10x10xi32> into tensor<10x10xi32> 
@@ -2280,7 +2280,7 @@ def test_forall_insert_slice_no_region_with_for(ctx: MLIRContext):
22802280    # CHECK:  %[[VAL_4:.*]] = arith.constant 2 : index 
22812281    # CHECK:  %[[VAL_5:.*]] = arith.constant 3 : index 
22822282    # CHECK:  %[[VAL_6:.*]] = arith.constant 3 : index 
2283-     # CHECK:  %[[VAL_7:.*]] = scf.forall (%[[VAL_8:.*]], %[[VAL_9:.*]]) = (1, 1 ) to (2, 2 ) step (3, 3 ) shared_outs(%[[VAL_10:.*]] = %[[VAL_0]]) -> (tensor<10x10xi32>) { 
2283+     # CHECK:  %[[VAL_7:.*]] = scf.forall (%[[VAL_8:.*]], %[[VAL_9:.*]]) = (%[[VAL_1]], %[[VAL_2]] ) to (%[[VAL_3]], %[[VAL_4]] ) step (%[[VAL_5]], %[[VAL_6]] ) shared_outs(%[[VAL_10:.*]] = %[[VAL_0]]) -> (tensor<10x10xi32>) { 
22842284    # CHECK:    %[[VAL_11:.*]] = arith.constant 1.000000e+00 : f32 
22852285    # CHECK:    scf.forall.in_parallel { 
22862286    # CHECK:      tensor.parallel_insert_slice %[[VAL_0]] into %[[VAL_10]]{{\[}}%[[VAL_8]], %[[VAL_9]]] [10, 10] [1, 1] : tensor<10x10xi32> into tensor<10x10xi32> 
0 commit comments