R600/SI: Fix a crash when spilling SGPRs
authorTom Stellard <thomas.stellard@amd.com>
Tue, 10 Jun 2014 21:20:38 +0000 (21:20 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 10 Jun 2014 21:20:38 +0000 (21:20 +0000)
commit48d11b0228ec801ccc713981b208965fd032a0f6
tree3ce6c33286dafc6ac62142946d581ce6cd0dffcf
parent40b0a148a217d8826af26fbdc8e7b13d06fdb33b
R600/SI: Fix a crash when spilling SGPRs

We need to make sure only one new instruction is added when spilling
otherwise the register allocator may crash.

This fixes a crash in the game Antichamber.

https://bugs.freedesktop.org/show_bug.cgi?id=75276

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