AMDGPU/GlobalISel: Select G_SHUFFLE_VECTOR
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sun, 16 Feb 2020 04:56:56 +0000 (23:56 -0500)
committerMatt Arsenault <arsenm2@gmail.com>
Fri, 21 Feb 2020 18:35:40 +0000 (13:35 -0500)
commit72eef820d528ab93982e54cd49c44fabf20e83a5
tree91fe02076118aedc1296a78c3fc27eb4674180ed
parent1723f219939e1d4dc1c53ec7caf10c9380822b99
AMDGPU/GlobalISel: Select G_SHUFFLE_VECTOR

G_SHUFFLE_VECTOR is legal since it theoretically may help match op_sel
for VOP3P instructions. Expand it in some other way in case it doesn't
fold into the use instructions.
llvm/lib/Target/AMDGPU/AMDGPUGlobalISelUtils.cpp
llvm/lib/Target/AMDGPU/AMDGPUGlobalISelUtils.h
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-shuffle-vector.v2s16.mir [new file with mode: 0644]