Commit ba0142e
committed
[AMDGPU] Teach iterative schedulers about IGLP (llvm#134953)
This adds IGLP mutation to the iterative schedulers
(`gcn-iterative-max-occupancy-experimental`, `gcn-iterative-minreg`, and
`gcn-iterative-ilp`).
The `gcn-iterative-minreg` and `gcn-iterative-ilp` schedulers never
actually applied the mutations added, so this also has the effect of
teaching them about mutations in general. The
`gcn-iterative-max-occupancy-experimental` scheduler has calls to
`ScheduleDAGMILive::schedule()`, so, before this, mutations were applied
at this point. Now this is done during calls to `BuildDAG`, with IGLP
superseding other mutations (similar to the other schedulers). We may
end up scheduling regions multiple times, with mutations being applied
each time, so we need to track for
`AMDGPU::SchedulingPhase::PreRAReentry`1 parent 35c6983 commit ba0142e
File tree
8 files changed
+1001
-27
lines changed- llvm
- lib/Target/AMDGPU
- test/CodeGen/AMDGPU
8 files changed
+1001
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| 566 | + | |
566 | 567 | | |
567 | 568 | | |
568 | 569 | | |
569 | 570 | | |
570 | | - | |
571 | | - | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
572 | 575 | | |
573 | 576 | | |
574 | 577 | | |
| |||
580 | 583 | | |
581 | 584 | | |
582 | 585 | | |
| 586 | + | |
583 | 587 | | |
584 | 588 | | |
585 | 589 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
121 | 142 | | |
122 | 143 | | |
123 | 144 | | |
124 | 145 | | |
125 | 146 | | |
126 | 147 | | |
127 | 148 | | |
128 | | - | |
129 | | - | |
130 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
131 | 152 | | |
132 | 153 | | |
133 | | - | |
| 154 | + | |
134 | 155 | | |
135 | 156 | | |
| 157 | + | |
136 | 158 | | |
137 | 159 | | |
138 | 160 | | |
| |||
432 | 454 | | |
433 | 455 | | |
434 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
435 | 460 | | |
436 | | - | |
| 461 | + | |
437 | 462 | | |
438 | 463 | | |
439 | 464 | | |
440 | 465 | | |
441 | | - | |
442 | 466 | | |
443 | 467 | | |
444 | 468 | | |
| |||
469 | 493 | | |
470 | 494 | | |
471 | 495 | | |
472 | | - | |
| 496 | + | |
| 497 | + | |
473 | 498 | | |
| 499 | + | |
| 500 | + | |
474 | 501 | | |
475 | 502 | | |
476 | 503 | | |
| |||
489 | 516 | | |
490 | 517 | | |
491 | 518 | | |
492 | | - | |
| 519 | + | |
| 520 | + | |
493 | 521 | | |
494 | 522 | | |
495 | 523 | | |
| |||
556 | 584 | | |
557 | 585 | | |
558 | 586 | | |
559 | | - | |
| 587 | + | |
| 588 | + | |
560 | 589 | | |
| 590 | + | |
| 591 | + | |
561 | 592 | | |
562 | 593 | | |
563 | 594 | | |
| |||
566 | 597 | | |
567 | 598 | | |
568 | 599 | | |
569 | | - | |
| 600 | + | |
570 | 601 | | |
571 | 602 | | |
572 | 603 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| 96 | + | |
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | 191 | | |
198 | 192 | | |
199 | 193 | | |
| |||
1018 | 1012 | | |
1019 | 1013 | | |
1020 | 1014 | | |
| 1015 | + | |
1021 | 1016 | | |
1022 | 1017 | | |
1023 | | - | |
| 1018 | + | |
1024 | 1019 | | |
1025 | 1020 | | |
1026 | 1021 | | |
| |||
1754 | 1749 | | |
1755 | 1750 | | |
1756 | 1751 | | |
1757 | | - | |
1758 | | - | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
1759 | 1755 | | |
1760 | 1756 | | |
1761 | 1757 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
986 | 986 | | |
987 | 987 | | |
988 | 988 | | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
989 | 995 | | |
990 | 996 | | |
991 | 997 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
0 commit comments