R600/SI: Fix bug in SIInstrInfo::legalizeOpWithMove()
authorTom Stellard <thomas.stellard@amd.com>
Fri, 5 Sep 2014 14:08:01 +0000 (14:08 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 5 Sep 2014 14:08:01 +0000 (14:08 +0000)
commiteb1fef0ec148983cd97a761dc76101823cf81a34
treeae3436bd719f120848655002f1b585bcc2e9a7d0
parent7cda2d06663d90ce9cfa41405b3861deb100512c
R600/SI: Fix bug in SIInstrInfo::legalizeOpWithMove()

We must constrain the destination register class of legalized operands
to a VGPR class or else the illegal operand may be folded back into
the instruction by the register coalescer.

This fixes a bug in add.ll that will be uncovered by future commits.

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