OSDN Git Service

R600/SI: Remove i1 pseudo VALU ops
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 3 Dec 2014 05:22:35 +0000 (05:22 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 3 Dec 2014 05:22:35 +0000 (05:22 +0000)
commitec0a7cd15a5e2bdabb3ccdf1a0c8c851a7c2c8ca
tree64d862c3e64cb7f017d53e87ee92556962cf59ed
parentbd5f9f45d120dc78f12e2c2c3caea305bde948e4
R600/SI: Remove i1 pseudo VALU ops

Select i1 logical ops directly to 64-bit SALU instructions.
Vector i1 values are always really in SGPRs, with each
bit for each item in the wave. This saves about 4 instructions
when and/or/xoring any condition, and also helps write conditions
that need to be passed in vcc.

This should work correctly now that the SGPR live range
fixing pass works. More work is needed to eliminate the VReg_1
pseudo regclass and possibly the entire SILowerI1Copies pass.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223206 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SIInstrInfo.td
lib/Target/R600/SIInstructions.td
lib/Target/R600/SILowerI1Copies.cpp
test/CodeGen/R600/fceil64.ll
test/CodeGen/R600/ffloor.ll
test/CodeGen/R600/setcc.ll
test/CodeGen/R600/setcc64.ll
test/CodeGen/R600/sgpr-control-flow.ll
test/CodeGen/R600/valu-i1.ll
test/CodeGen/R600/xor.ll