Commit 15df9e7
authored
[AMDGPU][SDAG] Add missing cases for SI_INDIRECT_SRC/DST (#170323)
Before this patch, `insertelement/extractelement` with dynamic indices
would
fail to select with `-O0` for vector 32-bit element types with sizes 3,
5, 6 and 7,
which did not map to a `SI_INDIRECT_SRC/DST` pattern.
Other "weird" sizes bigger than 8 (like 13) are properly handled
already.
To solve this issue we add the missing patterns for the problematic
sizes.
Solves SWDEV-5688621 parent f57abf5 commit 15df9e7
File tree
4 files changed
+9297
-0
lines changed- llvm
- lib/Target/AMDGPU
- test/CodeGen/AMDGPU
4 files changed
+9297
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6304 | 6304 | | |
6305 | 6305 | | |
6306 | 6306 | | |
| 6307 | + | |
6307 | 6308 | | |
| 6309 | + | |
| 6310 | + | |
| 6311 | + | |
6308 | 6312 | | |
6309 | 6313 | | |
6310 | 6314 | | |
| |||
6315 | 6319 | | |
6316 | 6320 | | |
6317 | 6321 | | |
| 6322 | + | |
6318 | 6323 | | |
| 6324 | + | |
| 6325 | + | |
| 6326 | + | |
6319 | 6327 | | |
6320 | 6328 | | |
6321 | 6329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
| 972 | + | |
972 | 973 | | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
973 | 977 | | |
974 | 978 | | |
975 | 979 | | |
| |||
980 | 984 | | |
981 | 985 | | |
982 | 986 | | |
| 987 | + | |
983 | 988 | | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
984 | 992 | | |
985 | 993 | | |
986 | 994 | | |
| |||
2779 | 2787 | | |
2780 | 2788 | | |
2781 | 2789 | | |
| 2790 | + | |
2782 | 2791 | | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
2783 | 2795 | | |
2784 | 2796 | | |
2785 | 2797 | | |
| |||
2789 | 2801 | | |
2790 | 2802 | | |
2791 | 2803 | | |
| 2804 | + | |
2792 | 2805 | | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
2793 | 2809 | | |
2794 | 2810 | | |
2795 | 2811 | | |
| |||
0 commit comments