Commit ea9acc9
authored
CodeGen: Surface shouldRewriteCopySrc utility function (#158524)
Change shouldRewriteCopySrc to return the common register
class and expose it as a utility function. I've found myself
reproducing essentially the same logic in multiple places. The
purpose of this function is to jsut work through the API constraints
of which combination of register class and subreg indexes you have.
i.e. you need to use a different function if you have 0, 1, or 2
subregister indexes involved in a pair of copy-like operations.1 parent 64dba81 commit ea9acc9
File tree
3 files changed
+28
-36
lines changed- llvm
- include/llvm/CodeGen
- lib
- CodeGen
- Target/AMDGPU
3 files changed
+28
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
681 | 695 | | |
682 | 696 | | |
683 | 697 | | |
684 | 698 | | |
685 | 699 | | |
686 | 700 | | |
687 | 701 | | |
688 | | - | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
689 | 706 | | |
690 | 707 | | |
691 | 708 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
422 | 418 | | |
423 | 419 | | |
424 | 420 | | |
425 | 421 | | |
426 | 422 | | |
427 | | - | |
| 423 | + | |
428 | 424 | | |
429 | 425 | | |
430 | 426 | | |
431 | 427 | | |
432 | | - | |
433 | | - | |
| 428 | + | |
| 429 | + | |
434 | 430 | | |
435 | 431 | | |
436 | 432 | | |
| |||
442 | 438 | | |
443 | 439 | | |
444 | 440 | | |
445 | | - | |
| 441 | + | |
446 | 442 | | |
447 | 443 | | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
| 444 | + | |
457 | 445 | | |
458 | 446 | | |
459 | 447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
714 | 713 | | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
| 714 | + | |
| 715 | + | |
729 | 716 | | |
730 | 717 | | |
731 | 718 | | |
| |||
0 commit comments