AMDGPU/GlobalISel: Fix allowing non-boolean conditions for G_SELECT
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 1 Jul 2019 18:13:12 +0000 (18:13 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 1 Jul 2019 18:13:12 +0000 (18:13 +0000)
commit9470bb262b545b849e5b9f4afa6e5a7fb28e5c75
treefb6ea415cfd03a8b27ba22afdf47359727456ea0
parente62857786f9550a39a59f25b3e2e22407f48767d
AMDGPU/GlobalISel: Fix allowing non-boolean conditions for G_SELECT

The condition register bank must be scc or vcc so that a copy will be
inserted, which will be lowered to a compare.

Currently greedy unnecessarily forces using a VCC select.

llvm-svn: 364825
llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-phi.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-select.mir