mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
AMDGPU: Don't reserve SCRATCH_PTR input register
This hasn't been doing anything since using relocations was added. llvm-svn: 254304
This commit is contained in:
parent
b3f88e2a89
commit
73a891e5c6
@ -633,21 +633,13 @@ SDValue SITargetLowering::LowerFormalArguments(
|
||||
unsigned InputPtrRegHi =
|
||||
TRI->getPhysRegSubReg(InputPtrReg, &AMDGPU::SReg_32RegClass, 1);
|
||||
|
||||
unsigned ScratchPtrReg =
|
||||
TRI->getPreloadedValue(MF, SIRegisterInfo::SCRATCH_PTR);
|
||||
unsigned ScratchPtrRegLo =
|
||||
TRI->getPhysRegSubReg(ScratchPtrReg, &AMDGPU::SReg_32RegClass, 0);
|
||||
unsigned ScratchPtrRegHi =
|
||||
TRI->getPhysRegSubReg(ScratchPtrReg, &AMDGPU::SReg_32RegClass, 1);
|
||||
|
||||
CCInfo.AllocateReg(InputPtrRegLo);
|
||||
CCInfo.AllocateReg(InputPtrRegHi);
|
||||
CCInfo.AllocateReg(ScratchPtrRegLo);
|
||||
CCInfo.AllocateReg(ScratchPtrRegHi);
|
||||
MF.addLiveIn(InputPtrReg, &AMDGPU::SReg_64RegClass);
|
||||
MF.addLiveIn(ScratchPtrReg, &AMDGPU::SReg_64RegClass);
|
||||
SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>();
|
||||
if (Subtarget->isAmdHsaOS() && MFI->hasDispatchPtr()) {
|
||||
|
||||
const SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>();
|
||||
|
||||
if (MFI->hasDispatchPtr()) {
|
||||
unsigned DispatchPtrReg =
|
||||
TRI->getPreloadedValue(MF, SIRegisterInfo::DISPATCH_PTR);
|
||||
unsigned DispatchPtrRegLo =
|
||||
|
@ -3,7 +3,7 @@
|
||||
; register operands in the correct order when modifying the opcode of an
|
||||
; instruction to V_ADD_I32_e32.
|
||||
|
||||
; CHECK: %19 = V_ADD_I32_e32 %13, %12, implicit-def %vcc, implicit %exec
|
||||
; CHECK: %{{[0-9]+}} = V_ADD_I32_e32 %{{[0-9]+}}, %{{[0-9]+}}, implicit-def %vcc, implicit %exec
|
||||
|
||||
define void @test(i32 addrspace(1)* %out, i32 addrspace(1)* %in) {
|
||||
entry:
|
||||
|
Loading…
Reference in New Issue
Block a user