Commit 37c96f1
DAG: Fix assuming f16 is the only 16-bit fp type in concat vector combine (llvm#121637)
This would see if there are mixed integer and FP types and pick an
equivalently sized FP type to use as the vector element type, and only
cast if there were mixed integers. We need to insert a cast if the types
are mixed, which may include different FP types.
Fixes llvm#121601
(cherry picked from commit d34f7ea)1 parent a79a105 commit 37c96f1
File tree
2 files changed
+32
-17
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/AMDGPU
2 files changed
+32
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23818 | 23818 | | |
23819 | 23819 | | |
23820 | 23820 | | |
23821 | | - | |
23822 | | - | |
| 23821 | + | |
| 23822 | + | |
23823 | 23823 | | |
23824 | 23824 | | |
23825 | 23825 | | |
| |||
23833 | 23833 | | |
23834 | 23834 | | |
23835 | 23835 | | |
23836 | | - | |
23837 | | - | |
23838 | | - | |
23839 | | - | |
| 23836 | + | |
| 23837 | + | |
23840 | 23838 | | |
23841 | 23839 | | |
23842 | 23840 | | |
23843 | 23841 | | |
23844 | 23842 | | |
23845 | 23843 | | |
23846 | | - | |
23847 | | - | |
23848 | | - | |
23849 | | - | |
23850 | | - | |
23851 | | - | |
23852 | | - | |
23853 | | - | |
23854 | | - | |
23855 | | - | |
23856 | | - | |
| 23844 | + | |
| 23845 | + | |
| 23846 | + | |
| 23847 | + | |
| 23848 | + | |
| 23849 | + | |
| 23850 | + | |
| 23851 | + | |
| 23852 | + | |
23857 | 23853 | | |
23858 | 23854 | | |
23859 | 23855 | | |
| |||
Lines changed: 19 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 | + | |
0 commit comments