OSDN Git Service

AMDGPU: Set HasExtractBitInsn
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 1 Mar 2016 04:58:17 +0000 (04:58 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 1 Mar 2016 04:58:17 +0000 (04:58 +0000)
commit12cb9f057f256eabc72fe5058e117f9f289d43bb
tree4f57e1c3db3d51860e9f697d05127a96591acf6d
parentdcae508e2ecdfae5c57035ccf2265f16cdbe1677
AMDGPU: Set HasExtractBitInsn

This currently does not have the control over the bitwidth,
and there are missing optimizations to reduce the integer to
32-bit if it can be.

But in most situations we do want the sinking to occur.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@262296 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
test/CodeGen/AMDGPU/cgp-bitfield-extract.ll [new file with mode: 0644]