AMDGPU/GlobalISel: Select G_CTTZ_ZERO_UNDEF
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 7 Feb 2020 16:08:52 +0000 (11:08 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 13 Feb 2020 00:19:46 +0000 (16:19 -0800)
commitd1b393d92c2d595ee5893c8e9ebc9da50d15f2a0
treea50549f35f5b1dde3827dcb6dc631aff6094e2e7
parent045a8921d74d99e21b454ee8ef4f97d6c81b8cc1
AMDGPU/GlobalISel: Select G_CTTZ_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/AMDGPUInstrInfo.td
llvm/lib/Target/AMDGPU/SOPInstructions.td
llvm/lib/Target/AMDGPU/VOP1Instructions.td
llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-cttz-zero-undef.mir [new file with mode: 0644]