AMDGPU/GlobalISel: Remove unnecessary legality constraint for G_EXTRACT
authorTom Stellard <tstellar@redhat.com>
Tue, 24 Jul 2018 01:43:49 +0000 (01:43 +0000)
committerTom Stellard <tstellar@redhat.com>
Tue, 24 Jul 2018 01:43:49 +0000 (01:43 +0000)
commit2d37929c1087870d91a4140913318b91bc65bd4d
treef436267f3eab9e265eefee61150aee28926162ad
parent6c3a74edc99380594aeab458844f9d6b511b6d1f
AMDGPU/GlobalISel: Remove unnecessary legality constraint for G_EXTRACT

Summary:
We were marking G_EXTRACT operations unsupported if the output type
was larger than the input type.  I don't see how this could ever actually
happen, so I dropped the constraint.  Doing this makes it possible to
reuse the same legality code for G_INSERT.

Reviewers: arsenm

Reviewed By: arsenm

Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, rovka, kristof.beyls, dstuttard, tpr, t-tye, llvm-commits

Differential Revision: https://reviews.llvm.org/D49600

llvm-svn: 337794
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp