OSDN Git Service

AMDGPU: Fix inconsistent lowering of select of vectors
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 25 May 2016 17:34:58 +0000 (17:34 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 25 May 2016 17:34:58 +0000 (17:34 +0000)
commit068cdecac22ffa66b7f1ea2019fc2309d8ca70fe
tree80d280aaa0b73dec57a910468956a8b893fde4bd
parentcab076f44ce5b2f6adbd38a56d39b85c8164f904
AMDGPU: Fix inconsistent lowering of select of vectors

f32 vectors would use a sequence of BFI instructions instead
of unrolled cmp + select. This was better in the case of a VALU
select with SGPR inputs, but we don't have a way of dealing with that
in the DAG.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270731 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
test/CodeGen/AMDGPU/select-vectors.ll