Commit 7072094
committed
[RISCV] Print using dummy_reg_pair_with_x0 in more places.
Similar to #141261.
These aren't easy to test without write MIR tests in areas we
don't currently have tests. I'm not sure we even use X0_Pair anywhere
today.
I'm going to try to migrate RISCVMakeCompressible to use copyToReg
so we can share that code instead of basically duplicating it.
I'm still concerned that target independent code may decompose
an extract_subreg operation and get an incorrect register if we
do start using X0_Pair. We may have to special case dummy_reg_pair_with_x0
in the encoder and printer to be safe.1 parent 52c2e45 commit 7072094
File tree
2 files changed
+12
-4
lines changed- llvm/lib/Target/RISCV
2 files changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| 326 | + | |
| 327 | + | |
326 | 328 | | |
327 | 329 | | |
328 | 330 | | |
| |||
370 | 372 | | |
371 | 373 | | |
372 | 374 | | |
| 375 | + | |
373 | 376 | | |
374 | 377 | | |
375 | 378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
546 | 553 | | |
547 | 554 | | |
548 | 555 | | |
549 | | - | |
550 | | - | |
| 556 | + | |
551 | 557 | | |
552 | 558 | | |
553 | 559 | | |
554 | | - | |
555 | | - | |
| 560 | + | |
556 | 561 | | |
557 | 562 | | |
558 | 563 | | |
| |||
0 commit comments