R600: Try to convert BFE back to standard bit ops when possible.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 22 May 2014 18:09:12 +0000 (18:09 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 22 May 2014 18:09:12 +0000 (18:09 +0000)
commit05e96f444453bdde2d2b0b15967f6936f057be3f
tree1ca8cca1dd5622bdcfccd371f8089fb94604fbe0
parent5565f65e1398ff7633ba7e52d80f6b02066b8f33
R600: Try to convert BFE back to standard bit ops when possible.

This allows existing DAG combines to work on them, and then
we can re-match to BFE if necessary during instruction selection.

llvm-svn: 209462
llvm/lib/Target/R600/AMDGPUISelLowering.cpp
llvm/test/CodeGen/R600/llvm.AMDGPU.bfe.i32.ll
llvm/test/CodeGen/R600/llvm.AMDGPU.bfe.u32.ll
llvm/test/CodeGen/R600/sext-in-reg.ll
llvm/test/CodeGen/R600/udivrem64.ll