AMDGPU/GlobalISel: Avoid illegal vector exts for add/sub/mul
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 19 Feb 2020 17:54:35 +0000 (12:54 -0500)
committerMatt Arsenault <arsenm2@gmail.com>
Tue, 10 Mar 2020 03:42:17 +0000 (23:42 -0400)
commit627bb31a28a53ba2952c8d0fc3d7aadb0b76c58f
tree7de4d039f60cba6815d07ac6f3455bb1c37f06d8
parented72bcae3467f6a3874ddad13c9212ebce818150
AMDGPU/GlobalISel: Avoid illegal vector exts for add/sub/mul

When expanding scalar packed operations, we should not introduce
illegal vector casts LegalizerHelper introduces. We're not in a
legalizer context, and there's no RegBankSelect apply or legalize
worklist.
llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/add.v2i16.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-add.v2s16.mir