mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
[SystemZ] Rename 32-bit GPR registers
I'm about to add support for high-word operations, so it seemed better for the low-word registers to have names like R0L rather than R0W. No behavioral change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191655 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -733,7 +733,7 @@ static bool canUseSiblingCall(CCState ArgCCInfo,
|
||||
if (!VA.isRegLoc())
|
||||
return false;
|
||||
unsigned Reg = VA.getLocReg();
|
||||
if (Reg == SystemZ::R6W || Reg == SystemZ::R6D)
|
||||
if (Reg == SystemZ::R6L || Reg == SystemZ::R6D)
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -2834,12 +2834,12 @@ SystemZTargetLowering::emitStringWrapper(MachineInstr *MI,
|
||||
// LoopMBB:
|
||||
// %This1Reg = phi [ %Start1Reg, StartMBB ], [ %End1Reg, LoopMBB ]
|
||||
// %This2Reg = phi [ %Start2Reg, StartMBB ], [ %End2Reg, LoopMBB ]
|
||||
// R0W = %CharReg
|
||||
// %End1Reg, %End2Reg = CLST %This1Reg, %This2Reg -- uses R0W
|
||||
// R0L = %CharReg
|
||||
// %End1Reg, %End2Reg = CLST %This1Reg, %This2Reg -- uses R0L
|
||||
// JO LoopMBB
|
||||
// # fall through to DoneMMB
|
||||
//
|
||||
// The load of R0W can be hoisted by post-RA LICM.
|
||||
// The load of R0L can be hoisted by post-RA LICM.
|
||||
MBB = LoopMBB;
|
||||
|
||||
BuildMI(MBB, DL, TII->get(SystemZ::PHI), This1Reg)
|
||||
@@ -2848,7 +2848,7 @@ SystemZTargetLowering::emitStringWrapper(MachineInstr *MI,
|
||||
BuildMI(MBB, DL, TII->get(SystemZ::PHI), This2Reg)
|
||||
.addReg(Start2Reg).addMBB(StartMBB)
|
||||
.addReg(End2Reg).addMBB(LoopMBB);
|
||||
BuildMI(MBB, DL, TII->get(TargetOpcode::COPY), SystemZ::R0W).addReg(CharReg);
|
||||
BuildMI(MBB, DL, TII->get(TargetOpcode::COPY), SystemZ::R0L).addReg(CharReg);
|
||||
BuildMI(MBB, DL, TII->get(Opcode))
|
||||
.addReg(End1Reg, RegState::Define).addReg(End2Reg, RegState::Define)
|
||||
.addReg(This1Reg).addReg(This2Reg);
|
||||
|
||||
Reference in New Issue
Block a user