From 056d9c6ef19c15080eaeba4efc156cd16c5cee6b Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 5 Sep 2012 14:34:03 -0400 Subject: [PATCH] radeon/llvm: Ignore special registers when calculating reg count MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Michel Dänzer --- src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp b/src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp index 07f443d9c2f..392791cd49d 100644 --- a/src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp +++ b/src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp @@ -85,6 +85,8 @@ void AMDGPUAsmPrinter::EmitProgramInfo(MachineFunction &MF) { default: break; case AMDGPU::EXEC: case AMDGPU::SI_LITERAL_CONSTANT: + case AMDGPU::SREG_LIT_0: + case AMDGPU::M0: continue; } -- 2.30.2