Commit fc37dcc
committed
AMDGPU: More consistently use the fold list instead of direct mutation
There were 2 parallel fold check mechanisms, so consistently use the
fold list. The worklist management here is still not good. Other types
of folds are not using it, and we should probably rewrite the pass to
look more like peephole-opt.
This should be an alternative fix to skipping commute if the operands
are the same (#127562). The new test is still not broken as-is, but
demonstrates failures in a future patch.1 parent cd10c01 commit fc37dcc
File tree
2 files changed
+67
-18
lines changed- llvm
- lib/Target/AMDGPU
- test/CodeGen/AMDGPU
2 files changed
+67
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | 576 | | |
582 | 577 | | |
583 | 578 | | |
| |||
678 | 673 | | |
679 | 674 | | |
680 | 675 | | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | 676 | | |
688 | 677 | | |
689 | 678 | | |
| |||
814 | 803 | | |
815 | 804 | | |
816 | 805 | | |
817 | | - | |
| 806 | + | |
818 | 807 | | |
819 | 808 | | |
820 | 809 | | |
| |||
825 | 814 | | |
826 | 815 | | |
827 | 816 | | |
828 | | - | |
| 817 | + | |
829 | 818 | | |
830 | 819 | | |
831 | 820 | | |
| |||
836 | 825 | | |
837 | 826 | | |
838 | 827 | | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | 828 | | |
843 | 829 | | |
844 | 830 | | |
845 | 831 | | |
846 | 832 | | |
847 | 833 | | |
848 | | - | |
| 834 | + | |
849 | 835 | | |
850 | 836 | | |
851 | 837 | | |
| |||
Lines changed: 63 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
0 commit comments