From ef9468cfe5d3ec033fe95dcaad71717938456945 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Thu, 12 Aug 2004 00:10:01 +0000 Subject: [PATCH] Mark R2 as available for allocation on Darwin/PPC32, but not AIX/PPC64 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15673 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCRegisterInfo.td | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/Target/PowerPC/PPCRegisterInfo.td b/lib/Target/PowerPC/PPCRegisterInfo.td index c103dd6f374..78186cfc784 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.td +++ b/lib/Target/PowerPC/PPCRegisterInfo.td @@ -77,13 +77,16 @@ def TBU : SPR<5>; // then nonvolatiles in reverse order since stmw/lmw save from rN to r31 def GPRC : RegisterClass + R16, R15, R14, R13, R0, R1, LR]> { let Methods = [{ + iterator allocation_order_begin(MachineFunction &MF) const { + return begin() + (AIX ? 1 : 0); + } iterator allocation_order_end(MachineFunction &MF) const { - return end() - (AIX ? 4 : 3); + return end() - 3; } }]; } -- 2.34.1