diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-01-20 19:28:20 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-01-20 19:28:20 +0000 |
| commit | 46ffe68d773c1cb91c872cae5adf51b9ea15f180 (patch) | |
| tree | 54b1ee1b2649c23354ea74260ec144b4d5c43628 /llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp | |
| parent | e1143c1322e5f2eec6ca485553dddfad338ea412 (diff) | |
| download | bcm5719-llvm-46ffe68d773c1cb91c872cae5adf51b9ea15f180.tar.gz bcm5719-llvm-46ffe68d773c1cb91c872cae5adf51b9ea15f180.zip | |
AMDGPU/GlobalISel: Really legalize exts from i1
There is a combine that was hiding these tests
not actually testing what they should be, although
they were producing the expected end result.
llvm-svn: 351698
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp index 200840e93b2..2beed6e8903 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp @@ -158,7 +158,8 @@ AMDGPULegalizerInfo::AMDGPULegalizerInfo(const GCNSubtarget &ST, setAction({G_FCMP, 1, S64}, Legal); getActionDefinitionsBuilder({G_SEXT, G_ZEXT, G_ANYEXT}) - .legalFor({{S64, S32}, {S32, S16}, {S64, S16}}); + .legalFor({{S64, S32}, {S32, S16}, {S64, S16}, + {S32, S1}, {S64, S1}, {S16, S1}}); setAction({G_FPTOSI, S32}, Legal); setAction({G_FPTOSI, 1, S32}, Legal); |

