[Mesa-dev] [PATCH 2/2] radeon/llvm: Add super reg to reserved reg list

Vincent Lejeune vljn at ovi.com
Fri Oct 19 14:17:42 PDT 2012


---
 lib/Target/AMDGPU/R600ISelLowering.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/Target/AMDGPU/R600ISelLowering.cpp b/lib/Target/AMDGPU/R600ISelLowering.cpp
index 95294da..e791890 100644
--- a/lib/Target/AMDGPU/R600ISelLowering.cpp
+++ b/lib/Target/AMDGPU/R600ISelLowering.cpp
@@ -170,6 +170,9 @@ MachineBasicBlock * R600TargetLowering::EmitInstrWithCustomInserter(
       unsigned ReservedReg =
                           AMDGPU::R600_TReg32RegClass.getRegister(ReservedIndex);
       MFI->ReservedRegs.push_back(ReservedReg);
+      unsigned SuperReg =
+          AMDGPU::R600_Reg128RegClass.getRegister(ReservedIndex / 4);
+      MFI->ReservedRegs.push_back(SuperReg);
       break;
     }
 
-- 
1.7.11.7



More information about the mesa-dev mailing list