[AMDGPU][GlobalISel] Revise handling of wide loads in RegBankSelect
authorAustin Kerbow <Austin.Kerbow@amd.com>
Tue, 12 May 2020 00:24:03 +0000 (17:24 -0700)
committerAustin Kerbow <Austin.Kerbow@amd.com>
Tue, 12 May 2020 01:10:16 +0000 (18:10 -0700)
commit1429e4c3992d2a5f90de5879773b6cf5a050cb5e
treebbeb3531fa0a7ca730959676ab81e5543e7bdfbd
parent91259bf9c68ef72cbc0ce9230665808d10dec416
[AMDGPU][GlobalISel] Revise handling of wide loads in RegBankSelect

When splitting loads in RegBankSelect G_EXTRACT_VECTOR_ELT were being added
which could not be selected. Since invoking the legalizer will generate
instructions that split and combine wide loads, we can remove the redundant
repair instructions which are added by RegBankSelect.

Differential Revision: https://reviews.llvm.org/D75547
llvm/lib/Target/AMDGPU/AMDGPUGenRegisterBankInfo.def
llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-load.mir