Commit 2a291e2
Automerge: [AArch64] Correctly detect X reg from W reg in isCopyImpl (#137348)
The MachineCopyPropagation pass was incorrectly removing copy (ORRWrs)
instruction that appeared to be a nop. The instruction should not have
been marked as a copy though, the code was incorrectly assuming that
w29 - w0 + x0 == x29, but as x29 is fp it was out of order with the other
registers.
Fixes an issue reported on #129889.File tree
2 files changed
+14
-2
lines changed- llvm
- lib/Target/AArch64
- test/CodeGen/AArch64
2 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10053 | 10053 | | |
10054 | 10054 | | |
10055 | 10055 | | |
10056 | | - | |
10057 | | - | |
| 10056 | + | |
10058 | 10057 | | |
10059 | 10058 | | |
10060 | 10059 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
0 commit comments