Commit a34a024
authored
[AMDGPU][SIInsertWaitCnts] skip meta instructions early (llvm#145720)
When iterating over a block, meta instructions have no effect on wait counts,
but their presence drops the reference to earlier waitcnt instructions before
they are processed. This results in spurious wait counts, which do not affect
correctness, but are also not required in the resulting program. Skipping meta
instructions as soon as they are seen cleans this up.1 parent 13e6ea7 commit a34a024
File tree
10 files changed
+26
-79
lines changed- llvm
- lib/Target/AMDGPU
- test/CodeGen/AMDGPU
10 files changed
+26
-79
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1786 | 1786 | | |
1787 | 1787 | | |
1788 | 1788 | | |
1789 | | - | |
1790 | | - | |
| 1789 | + | |
1791 | 1790 | | |
1792 | 1791 | | |
1793 | 1792 | | |
| |||
2474 | 2473 | | |
2475 | 2474 | | |
2476 | 2475 | | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
2477 | 2480 | | |
2478 | 2481 | | |
2479 | 2482 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2250 | 2250 | | |
2251 | 2251 | | |
2252 | 2252 | | |
2253 | | - | |
2254 | 2253 | | |
2255 | 2254 | | |
2256 | 2255 | | |
| |||
2317 | 2316 | | |
2318 | 2317 | | |
2319 | 2318 | | |
2320 | | - | |
2321 | 2319 | | |
2322 | 2320 | | |
2323 | 2321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
731 | 731 | | |
732 | 732 | | |
733 | 733 | | |
734 | | - | |
735 | 734 | | |
736 | 735 | | |
737 | 736 | | |
| |||
973 | 972 | | |
974 | 973 | | |
975 | 974 | | |
976 | | - | |
977 | 975 | | |
978 | 976 | | |
979 | 977 | | |
| |||
1217 | 1215 | | |
1218 | 1216 | | |
1219 | 1217 | | |
1220 | | - | |
1221 | 1218 | | |
1222 | 1219 | | |
1223 | 1220 | | |
| |||
1595 | 1592 | | |
1596 | 1593 | | |
1597 | 1594 | | |
1598 | | - | |
1599 | 1595 | | |
1600 | 1596 | | |
1601 | 1597 | | |
| |||
1933 | 1929 | | |
1934 | 1930 | | |
1935 | 1931 | | |
1936 | | - | |
1937 | 1932 | | |
1938 | 1933 | | |
1939 | 1934 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | 130 | | |
132 | 131 | | |
133 | 132 | | |
| |||
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
141 | | - | |
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
| |||
197 | 195 | | |
198 | 196 | | |
199 | 197 | | |
200 | | - | |
201 | 198 | | |
202 | 199 | | |
203 | 200 | | |
| |||
208 | 205 | | |
209 | 206 | | |
210 | 207 | | |
211 | | - | |
212 | 208 | | |
213 | 209 | | |
214 | 210 | | |
| |||
305 | 301 | | |
306 | 302 | | |
307 | 303 | | |
308 | | - | |
309 | 304 | | |
310 | 305 | | |
311 | 306 | | |
| |||
376 | 371 | | |
377 | 372 | | |
378 | 373 | | |
379 | | - | |
380 | 374 | | |
381 | 375 | | |
382 | 376 | | |
| |||
387 | 381 | | |
388 | 382 | | |
389 | 383 | | |
390 | | - | |
391 | 384 | | |
392 | 385 | | |
393 | 386 | | |
| |||
446 | 439 | | |
447 | 440 | | |
448 | 441 | | |
449 | | - | |
450 | 442 | | |
451 | 443 | | |
452 | 444 | | |
| |||
457 | 449 | | |
458 | 450 | | |
459 | 451 | | |
460 | | - | |
461 | 452 | | |
462 | 453 | | |
463 | 454 | | |
| |||
554 | 545 | | |
555 | 546 | | |
556 | 547 | | |
557 | | - | |
558 | 548 | | |
559 | 549 | | |
560 | 550 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6171 | 6171 | | |
6172 | 6172 | | |
6173 | 6173 | | |
6174 | | - | |
| 6174 | + | |
6175 | 6175 | | |
6176 | 6176 | | |
6177 | 6177 | | |
6178 | 6178 | | |
6179 | 6179 | | |
6180 | | - | |
6181 | 6180 | | |
6182 | 6181 | | |
6183 | 6182 | | |
| |||
7290 | 7289 | | |
7291 | 7290 | | |
7292 | 7291 | | |
7293 | | - | |
7294 | 7292 | | |
7295 | 7293 | | |
7296 | 7294 | | |
| |||
7313 | 7311 | | |
7314 | 7312 | | |
7315 | 7313 | | |
7316 | | - | |
7317 | 7314 | | |
7318 | 7315 | | |
7319 | 7316 | | |
| |||
7534 | 7531 | | |
7535 | 7532 | | |
7536 | 7533 | | |
7537 | | - | |
7538 | 7534 | | |
7539 | 7535 | | |
7540 | 7536 | | |
| |||
7558 | 7554 | | |
7559 | 7555 | | |
7560 | 7556 | | |
7561 | | - | |
7562 | 7557 | | |
7563 | 7558 | | |
7564 | 7559 | | |
| |||
0 commit comments