Commit 06f3079
authored
AMDGPU: More consistently use the fold list instead of direct mutation (llvm#127612)
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 (llvm#127562). The new test is still not broken as-is, but demonstrates failures in a future patch.1 parent 862595c commit 06f3079
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 | | |
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | 578 | | |
584 | 579 | | |
585 | 580 | | |
| |||
680 | 675 | | |
681 | 676 | | |
682 | 677 | | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | 678 | | |
690 | 679 | | |
691 | 680 | | |
| |||
816 | 805 | | |
817 | 806 | | |
818 | 807 | | |
819 | | - | |
| 808 | + | |
820 | 809 | | |
821 | 810 | | |
822 | 811 | | |
| |||
827 | 816 | | |
828 | 817 | | |
829 | 818 | | |
830 | | - | |
| 819 | + | |
831 | 820 | | |
832 | 821 | | |
833 | 822 | | |
| |||
838 | 827 | | |
839 | 828 | | |
840 | 829 | | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | 830 | | |
845 | 831 | | |
846 | 832 | | |
847 | 833 | | |
848 | 834 | | |
849 | 835 | | |
850 | | - | |
| 836 | + | |
851 | 837 | | |
852 | 838 | | |
853 | 839 | | |
| |||
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