diff options
Diffstat (limited to 'src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp b/src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp index bf3d89c1b83..2d6c86d9d20 100644 --- a/src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp +++ b/src/gallium/drivers/radeon/AMDGPUAsmPrinter.cpp @@ -81,9 +81,13 @@ void AMDGPUAsmPrinter::EmitProgramInfo(MachineFunction &MF) { VCCUsed = true; continue; } - if (reg == AMDGPU::EXEC) { + switch (reg) { + default: break; + case AMDGPU::EXEC: + case AMDGPU::SI_LITERAL_CONSTANT: continue; } + if (AMDGPU::SReg_32RegClass.contains(reg)) { isSGPR = true; width = 1; |