Commit 2e2bbca
authored
AMDGPU/GlobalISel: Start legalizing minimumnum and maximumnum (#140900)
This is the bare minimum to get the intrinsic to compile for AMDGPU,
and it's not optimal. We need to follow along closer with the existing
G_FMINNUM/G_FMAXNUM with custom lowering to handle the IEEE=0 case
better.
Just re-use the existing lowering for the old semantics for
G_FMINNUM/G_FMAXNUM. This does not change G_FMINNUM/G_FMAXNUM's
treatment,
nor try to handle the general expansion without an underlying min/max
variant (or with G_FMINIMUM/G_FMAXIMUM).1 parent b263c08 commit 2e2bbca
File tree
4 files changed
+15219
-7751
lines changed- llvm
- lib
- CodeGen/GlobalISel
- Target/AMDGPU
- test/CodeGen/AMDGPU
4 files changed
+15219
-7751
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3221 | 3221 | | |
3222 | 3222 | | |
3223 | 3223 | | |
| 3224 | + | |
| 3225 | + | |
3224 | 3226 | | |
3225 | 3227 | | |
3226 | 3228 | | |
| |||
4591 | 4593 | | |
4592 | 4594 | | |
4593 | 4595 | | |
| 4596 | + | |
| 4597 | + | |
4594 | 4598 | | |
4595 | 4599 | | |
4596 | 4600 | | |
| |||
5379 | 5383 | | |
5380 | 5384 | | |
5381 | 5385 | | |
| 5386 | + | |
| 5387 | + | |
5382 | 5388 | | |
5383 | 5389 | | |
5384 | 5390 | | |
| |||
6090 | 6096 | | |
6091 | 6097 | | |
6092 | 6098 | | |
| 6099 | + | |
| 6100 | + | |
6093 | 6101 | | |
6094 | 6102 | | |
6095 | 6103 | | |
| |||
8139 | 8147 | | |
8140 | 8148 | | |
8141 | 8149 | | |
8142 | | - | |
8143 | | - | |
| 8150 | + | |
| 8151 | + | |
| 8152 | + | |
| 8153 | + | |
| 8154 | + | |
| 8155 | + | |
| 8156 | + | |
| 8157 | + | |
| 8158 | + | |
| 8159 | + | |
| 8160 | + | |
| 8161 | + | |
| 8162 | + | |
| 8163 | + | |
| 8164 | + | |
| 8165 | + | |
| 8166 | + | |
| 8167 | + | |
| 8168 | + | |
| 8169 | + | |
| 8170 | + | |
8144 | 8171 | | |
8145 | 8172 | | |
8146 | 8173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
960 | 960 | | |
961 | 961 | | |
962 | 962 | | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
963 | 967 | | |
964 | 968 | | |
965 | 969 | | |
| |||
976 | 980 | | |
977 | 981 | | |
978 | 982 | | |
| 983 | + | |
| 984 | + | |
979 | 985 | | |
980 | 986 | | |
981 | 987 | | |
| |||
0 commit comments