Commit 1f5413f
committed
[layout][AArch64] Do not convert ADDS/SUBS back to three-address
The `ADDS/SUBS` MIR instructions are usually used in implementing conditions
since they set the condition flags. Because X86 uses `CMP`-like instructions
for the same purpose, which follow the two-address format, we avoid
converting these AArch64 instructions back to the three-address format
during the `twoaddressinstruction` pass. This way, they retain the
two-address format which we have imposed.1 parent d3199ba commit 1f5413f
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5625 | 5625 | | |
5626 | 5626 | | |
5627 | 5627 | | |
5628 | | - | |
5629 | | - | |
5630 | 5628 | | |
5631 | 5629 | | |
5632 | | - | |
5633 | | - | |
5634 | 5630 | | |
5635 | 5631 | | |
| 5632 | + | |
| 5633 | + | |
| 5634 | + | |
| 5635 | + | |
| 5636 | + | |
| 5637 | + | |
| 5638 | + | |
| 5639 | + | |
5636 | 5640 | | |
5637 | 5641 | | |
5638 | 5642 | | |
| |||
0 commit comments