R600/SI: Legalize CopyToReg during instruction selection
authorTom Stellard <thomas.stellard@amd.com>
Thu, 9 Oct 2014 19:06:00 +0000 (19:06 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 9 Oct 2014 19:06:00 +0000 (19:06 +0000)
commita8b2e6f4af1eae41e2e1f2f2df35959462a73321
tree7a5476e227a08453b55df4e42fc11455c2d71f81
parent80bfef5ce19b46e20f5a9904110ca955c2dd84d8
R600/SI: Legalize CopyToReg during instruction selection

The instruction emitter will crash if it encounters a CopyToReg
node with a non-register operand like FrameIndex.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219428 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDGPUISelDAGToDAG.cpp
lib/Target/R600/SIISelLowering.cpp
lib/Target/R600/SIISelLowering.h
test/CodeGen/R600/copy-to-reg.ll [new file with mode: 0644]