AMDGPU/GlobalISel: Select G_CTLZ_ZERO_UNDEF
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 7 Feb 2020 02:54:41 +0000 (21:54 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 13 Feb 2020 00:19:45 +0000 (16:19 -0800)
commit045a8921d74d99e21b454ee8ef4f97d6c81b8cc1
tree3ff1b71f079bea9d8442f32cd9dcb2f2ba31e5f6
parente174c278ca2f91bd2cae4fc849ba888fa7f851a9
AMDGPU/GlobalISel: Select G_CTLZ_ZERO_UNDEF

Directly select this rather than going through the intermediate
instruction, which may provide some combine value in the future.
llvm/lib/Target/AMDGPU/AMDGPUGISel.td
llvm/lib/Target/AMDGPU/AMDGPUInstrInfo.td
llvm/lib/Target/AMDGPU/SOPInstructions.td
llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-ctlz-zero-undef.mir [new file with mode: 0644]