Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 8842a08

Browse files
committed
Merging rr308903:
------------------------------------------------------------------------ r308903 | arsenm | 2017-07-24 11:06:15 -0700 (Mon, 24 Jul 2017) | 5 lines AMDGPU: Fix allocating pseudo-registers There's no need for these to be part of a class since they are immediately replaced. New unreachable hit in existing tests.' ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_50@309157 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent d2bc2dd commit 8842a08

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,11 @@ void AMDGPUInstPrinter::printRegOperand(unsigned RegNo, raw_ostream &O,
297297
case AMDGPU::FLAT_SCR_HI:
298298
O << "flat_scratch_hi";
299299
return;
300+
case AMDGPU::FP_REG:
301+
case AMDGPU::SP_REG:
302+
case AMDGPU::SCRATCH_WAVE_OFFSET_REG:
303+
case AMDGPU::PRIVATE_RSRC_REG:
304+
llvm_unreachable("pseudo-register should not ever be emitted");
300305
default:
301306
break;
302307
}

lib/Target/AMDGPU/SIRegisterInfo.td

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,7 @@ def VGPR_512 : RegisterTuples<[sub0, sub1, sub2, sub3, sub4, sub5, sub6, sub7,
274274
def SReg_32_XM0_XEXEC : RegisterClass<"AMDGPU", [i32, f32, i16, f16, v2i16, v2f16], 32,
275275
(add SGPR_32, VCC_LO, VCC_HI, FLAT_SCR_LO, FLAT_SCR_HI,
276276
TTMP_32, TMA_LO, TMA_HI, TBA_LO, TBA_HI, SRC_SHARED_BASE, SRC_SHARED_LIMIT,
277-
SRC_PRIVATE_BASE, SRC_PRIVATE_LIMIT,
278-
FP_REG, SP_REG, SCRATCH_WAVE_OFFSET_REG)> {
277+
SRC_PRIVATE_BASE, SRC_PRIVATE_LIMIT)> {
279278
let AllocationPriority = 7;
280279
}
281280

0 commit comments

Comments
 (0)