@@ -40,9 +40,8 @@ module {
40
40
// CHECK-DAG: %[[VAL_3:.*]] = arith.constant 10000000 : index
41
41
// CHECK: gpu.launch blocks(%[[VAL_4:.*]], %[[VAL_5:.*]], %[[VAL_6:.*]]) in (%[[VAL_7:.*]] = %[[VAL_2]], %[[VAL_8:.*]] = %[[VAL_0]], %[[VAL_9:.*]] = %[[VAL_0]]) threads(%[[VAL_10:.*]], %[[VAL_11:.*]], %[[VAL_12:.*]]) in (%[[VAL_13:.*]] = %[[VAL_1]], %[[VAL_14:.*]] = %[[VAL_0]], %[[VAL_15:.*]] = %[[VAL_0]]) {
42
42
// CHECK: %[[VAL_16:.*]] = gpu.block_id x
43
- // CHECK: %[[VAL_17:.*]] = gpu.block_dim x
44
43
// CHECK: %[[VAL_18:.*]] = gpu.thread_id x
45
- // CHECK: %[[VAL_19:.*]] = arith.muli %[[VAL_16]], %[[VAL_17 ]] : index
44
+ // CHECK: %[[VAL_19:.*]] = arith.muli %[[VAL_16]], %[[VAL_1 ]] : index
46
45
// CHECK: %[[VAL_20:.*]] = arith.addi %[[VAL_19]], %[[VAL_18]] : index
47
46
// CHECK: %[[VAL_21:.*]] = arith.cmpi ult, %[[VAL_20]], %[[VAL_3]] : index
48
47
// CHECK: scf.if %[[VAL_21]] {
@@ -150,11 +149,10 @@ module {
150
149
// CHECK: gpu.launch blocks(%[[VAL_165:.*]], %[[VAL_166:.*]], %[[VAL_167:.*]]) in (%[[VAL_168:.*]] = %[[VAL_0]], %[[VAL_169:.*]] = %[[VAL_163]], %[[VAL_170:.*]] = %[[VAL_10]]) threads(%[[VAL_171:.*]], %[[VAL_172:.*]], %[[VAL_173:.*]]) in (%[[VAL_174:.*]] = %[[VAL_7]], %[[VAL_175:.*]] = %[[VAL_9]], %[[VAL_176:.*]] = %[[VAL_8]]) {
151
150
// CHECK: %[[VAL_177:.*]] = gpu.block_id x
152
151
// CHECK: %[[VAL_178:.*]] = gpu.block_id y
153
- // CHECK: %[[VAL_179:.*]] = gpu.block_dim x
154
152
// CHECK: %[[VAL_180:.*]] = gpu.thread_id x
155
153
// CHECK: %[[VAL_181:.*]] = gpu.thread_id y
156
154
// CHECK: %[[VAL_182:.*]] = gpu.thread_id z
157
- // CHECK: %[[VAL_183:.*]] = arith.muli %[[VAL_178]], %[[VAL_179 ]] : index
155
+ // CHECK: %[[VAL_183:.*]] = arith.muli %[[VAL_178]], %[[VAL_7 ]] : index
158
156
// CHECK: %[[VAL_184:.*]] = arith.addi %[[VAL_183]], %[[VAL_180]] : index
159
157
// CHECK: %[[VAL_185:.*]] = arith.cmpi ult, %[[VAL_184]], %[[VAL_1]] : index
160
158
// CHECK: scf.if %[[VAL_185]] {
0 commit comments