Index: llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp =================================================================== --- llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp +++ llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp @@ -1347,18 +1347,6 @@ } StringRef SIRegisterInfo::getRegAsmName(unsigned Reg) const { - // FIXME: Rename flat_scr so we don't need to special case this. - switch (Reg) { - case AMDGPU::FLAT_SCR: - return "flat_scratch"; - case AMDGPU::FLAT_SCR_LO: - return "flat_scratch_lo"; - case AMDGPU::FLAT_SCR_HI: - return "flat_scratch_hi"; - default: - break; - } - const TargetRegisterClass *RC = getMinimalPhysRegClass(Reg); unsigned Size = getRegSizeInBits(*RC); unsigned AltName = AMDGPU::NoRegAltName; Index: llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.td =================================================================== --- llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.td +++ llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.td @@ -171,7 +171,7 @@ multiclass FLAT_SCR_LOHI_m ci_e, bits<16> vi_e> { def _ci : SIReg; def _vi : SIReg; - def "" : SIReg<"", 0>; + def "" : SIReg; } class FlatReg encoding> :