OSDN Git Service

AMDGPU/GlobalISel: Fix test failures in release build
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 16 Jul 2019 14:28:30 +0000 (14:28 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 16 Jul 2019 14:28:30 +0000 (14:28 +0000)
commitaeefee98c17f2b70481a7a365a3dc912bbf0ae93
tree0fa5a3045bd4d5ac5d0e498a7a53af42fbd1034a
parent6f45ec09e89029f4eef9ffb3523389fac55f0efa
AMDGPU/GlobalISel: Fix test failures in release build

Apparently the check for legal instructions during instruction
select does not happen without an asserts build, so these would
successfully select in release, and fail in debug.

Make s16 and/or/xor legal. These can just be selected directly
to the 32-bit operation, as is already done in SelectionDAG, so just
make them legal.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366210 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
test/CodeGen/AMDGPU/GlobalISel/inst-select-and.mir
test/CodeGen/AMDGPU/GlobalISel/inst-select-or.mir
test/CodeGen/AMDGPU/GlobalISel/inst-select-xor.mir
test/CodeGen/AMDGPU/GlobalISel/legalize-and.mir
test/CodeGen/AMDGPU/GlobalISel/legalize-ashr.mir
test/CodeGen/AMDGPU/GlobalISel/legalize-fcopysign.mir
test/CodeGen/AMDGPU/GlobalISel/legalize-lshr.mir
test/CodeGen/AMDGPU/GlobalISel/legalize-merge-values.mir
test/CodeGen/AMDGPU/GlobalISel/legalize-or.mir
test/CodeGen/AMDGPU/GlobalISel/legalize-shl.mir
test/CodeGen/AMDGPU/GlobalISel/legalize-umax.mir
test/CodeGen/AMDGPU/GlobalISel/legalize-umin.mir
test/CodeGen/AMDGPU/GlobalISel/legalize-xor.mir