Commit 6d3a477
committed
[LLVM][CodeGen][AArch64] Improve PTEST removal by looking through copies.
The general predicates of the PTEST and PTEST_like instructions may
belong to different register classes. This can lead to the insertion
of a COPY instruction, making them appear different. However, for
the purpose of PTEST removal, such copies are irrelevant, and we can
look through them to improve the likelihood of finding a match.1 parent 715d144 commit 6d3a477
File tree
2 files changed
+11
-4
lines changed- llvm
- lib/Target/AArch64
- test/CodeGen/AArch64
2 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1491 | 1491 | | |
1492 | 1492 | | |
1493 | 1493 | | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
1494 | 1504 | | |
1495 | 1505 | | |
1496 | 1506 | | |
1497 | 1507 | | |
1498 | 1508 | | |
1499 | 1509 | | |
1500 | | - | |
1501 | 1510 | | |
1502 | 1511 | | |
1503 | 1512 | | |
| |||
1524 | 1533 | | |
1525 | 1534 | | |
1526 | 1535 | | |
1527 | | - | |
1528 | 1536 | | |
1529 | 1537 | | |
1530 | 1538 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
689 | 689 | | |
690 | 690 | | |
691 | 691 | | |
692 | | - | |
693 | | - | |
| 692 | + | |
694 | 693 | | |
695 | 694 | | |
696 | 695 | | |
| |||
0 commit comments