AMDGPU: Use generic bitreverse intrinsic
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 14 Dec 2015 17:25:38 +0000 (17:25 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 14 Dec 2015 17:25:38 +0000 (17:25 +0000)
commit1451e94ee001b2719b7967d52675c9edbf923f86
treed17c15ae9e1e92f72ae304d008be4bfba231910e
parent59dc7be11d6193d2cd320a3d54fe1a6532a27daa
AMDGPU: Use generic bitreverse intrinsic

Also fix bug in vector legalization for bitreverse.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255512 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
lib/Target/AMDGPU/AMDGPUISelLowering.h
lib/Target/AMDGPU/AMDGPUInstrInfo.td
lib/Target/AMDGPU/SIISelLowering.cpp
lib/Target/AMDGPU/SIInstructions.td
test/CodeGen/AMDGPU/bitreverse.ll [new file with mode: 0644]
test/CodeGen/AMDGPU/llvm.AMDGPU.brev.ll [deleted file]