diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-01-18 21:42:55 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-01-18 21:42:55 +0000 |
| commit | 96e47014010440adbc700e66c68e566236dfc2dd (patch) | |
| tree | 716ab2643502c437df16d022fe1e7cbb29b6ac3b /llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp | |
| parent | 86ac5326879a9e1ab8b92e28c02c0ba5aed880e8 (diff) | |
| download | bcm5719-llvm-96e47014010440adbc700e66c68e566236dfc2dd.tar.gz bcm5719-llvm-96e47014010440adbc700e66c68e566236dfc2dd.zip | |
AMDGPU/GlobalISel: Legalize more types for select
llvm-svn: 351599
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp index b73386ec443..d160c7cec2c 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp @@ -245,8 +245,10 @@ AMDGPULegalizerInfo::AMDGPULegalizerInfo(const GCNSubtarget &ST, Atomics.legalFor({{S32, FlatPtr}, {S64, FlatPtr}}); } - setAction({G_SELECT, S32}, Legal); - setAction({G_SELECT, 1, S1}, Legal); + // TODO: Pointer types, any 32-bit or 64-bit vector + getActionDefinitionsBuilder(G_SELECT) + .legalFor({{S32, S1}, {S64, S1}, {V2S32, S1}, {V2S16, S1}}) + .clampScalar(0, S32, S64); setAction({G_SHL, S32}, Legal); |

