AMDGPU/GlobalISel: Complete implementation of G_GEP
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 1 Jul 2019 16:34:48 +0000 (16:34 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 1 Jul 2019 16:34:48 +0000 (16:34 +0000)
commit0a52e9d026a86d078c5b7184b63e74b72f830665
treed7e16cfd0ad38faa2d758f07c5cac373e84319d8
parente1006259d84da5fe7d877978e9f41dd29ee5d4e9
AMDGPU/GlobalISel: Complete implementation of G_GEP

Also works around tablegen defect in selecting add with unused carry,
but if we have to manually select GEP, might as well handle add
manually.

llvm-svn: 364806
llvm/lib/Target/AMDGPU/AMDGPUGISel.td
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-add.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-gep.mir [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-load-smrd.mir