radeon/llvm: Ignore special registers when calculating reg count
authorTom Stellard <thomas.stellard@amd.com>
Wed, 5 Sep 2012 18:34:03 +0000 (14:34 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 11 Sep 2012 18:53:47 +0000 (14:53 -0400)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp

index 07f443d9c2facc9b44484d486ee0a73dd272325e..392791cd49df5105cfada1df32acc9cc8f0b7bd4 100644 (file)
@@ -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;
         }