[Mesa-dev] [PATCH 2/6] radeon/llvm: Add super reg to reserved reg list
Vincent Lejeune
vljn at ovi.com
Sun Oct 21 15:03:36 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 a7cb010..094d920 100644
--- a/lib/Target/AMDGPU/R600ISelLowering.cpp
+++ b/lib/Target/AMDGPU/R600ISelLowering.cpp
@@ -169,6 +169,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