R600/SI: Don't move operands that are required to be SGPRs
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 26 Sep 2014 17:54:52 +0000 (17:54 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 26 Sep 2014 17:54:52 +0000 (17:54 +0000)
commit8a70e28114f50b121c122a20a1cbafaa7b7e790d
tree9f46d01fa554123904a7abf1df8f1d4fe03844bd
parent5b199b585cc27ce8a77bbdbb66649b87ba85a204
R600/SI: Don't move operands that are required to be SGPRs

e.g. v_cndmask_b32 requires the condition operand be an SGPR.
If one of the source operands were an SGPR, that would be considered
the one SGPR use and the condition operand would be illegally moved.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218529 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SIInstrInfo.cpp
test/CodeGen/R600/v_cndmask.ll