Commit 21d1770
authored
[NFC] Refactor looping over recomputeLiveIns into function (#88040)
#79940 put calls to
recomputeLiveIns into
a loop, to repeatedly call the function until the computation converges.
However,
this repeats a lot of code. This changes moves the loop into a function
to simplify
the handling.
Note that this changes the order in which recomputeLiveIns is called.
For example,
```
bool anyChange = false;
do {
anyChange = recomputeLiveIns(*ExitMBB) || recomputeLiveIns(*LoopMBB);
} while (anyChange);
```
only begins to recompute the live-ins for LoopMBB after the computation
for ExitMBB
has converged. With this change, all basic blocks have a recomputation
of the live-ins
for each loop iteration. This can result in less or more calls,
depending on the
situation.1 parent a855eea commit 21d1770
File tree
9 files changed
+32
-61
lines changed- llvm
- include/llvm/CodeGen
- lib
- CodeGen
- Target
- AArch64
- ARM
- PowerPC
- SystemZ
- X86
9 files changed
+32
-61
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
210 | 228 | | |
211 | 229 | | |
212 | 230 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2047 | 2047 | | |
2048 | 2048 | | |
2049 | 2049 | | |
2050 | | - | |
2051 | | - | |
2052 | | - | |
2053 | | - | |
2054 | | - | |
2055 | | - | |
| 2050 | + | |
| 2051 | + | |
2056 | 2052 | | |
2057 | 2053 | | |
2058 | 2054 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4325 | 4325 | | |
4326 | 4326 | | |
4327 | 4327 | | |
4328 | | - | |
4329 | | - | |
4330 | | - | |
4331 | | - | |
| 4328 | + | |
4332 | 4329 | | |
4333 | 4330 | | |
4334 | 4331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9556 | 9556 | | |
9557 | 9557 | | |
9558 | 9558 | | |
9559 | | - | |
9560 | | - | |
9561 | | - | |
9562 | | - | |
9563 | | - | |
9564 | | - | |
9565 | | - | |
9566 | | - | |
9567 | | - | |
| 9559 | + | |
| 9560 | + | |
9568 | 9561 | | |
9569 | 9562 | | |
9570 | 9563 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1806 | 1806 | | |
1807 | 1807 | | |
1808 | 1808 | | |
1809 | | - | |
1810 | | - | |
1811 | | - | |
1812 | | - | |
1813 | | - | |
1814 | | - | |
1815 | | - | |
| 1809 | + | |
1816 | 1810 | | |
1817 | 1811 | | |
1818 | 1812 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
| 211 | + | |
215 | 212 | | |
216 | 213 | | |
217 | 214 | | |
| |||
288 | 285 | | |
289 | 286 | | |
290 | 287 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
| 288 | + | |
296 | 289 | | |
297 | 290 | | |
298 | 291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1435 | 1435 | | |
1436 | 1436 | | |
1437 | 1437 | | |
1438 | | - | |
1439 | | - | |
1440 | | - | |
1441 | | - | |
1442 | | - | |
| 1438 | + | |
1443 | 1439 | | |
1444 | 1440 | | |
1445 | 1441 | | |
| |||
1531 | 1527 | | |
1532 | 1528 | | |
1533 | 1529 | | |
1534 | | - | |
1535 | | - | |
1536 | | - | |
1537 | | - | |
| 1530 | + | |
1538 | 1531 | | |
1539 | 1532 | | |
1540 | 1533 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
| 827 | + | |
831 | 828 | | |
832 | 829 | | |
833 | 830 | | |
| |||
1425 | 1422 | | |
1426 | 1423 | | |
1427 | 1424 | | |
1428 | | - | |
1429 | | - | |
1430 | | - | |
1431 | | - | |
| 1425 | + | |
1432 | 1426 | | |
1433 | 1427 | | |
1434 | 1428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
| 888 | + | |
892 | 889 | | |
893 | 890 | | |
894 | 891 | | |
| |||
1380 | 1377 | | |
1381 | 1378 | | |
1382 | 1379 | | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
| 1380 | + | |
1388 | 1381 | | |
1389 | 1382 | | |
1390 | 1383 | | |
| |||
0 commit comments