diff --git a/lib/Target/PowerPC/PPCRegisterInfo.td b/lib/Target/PowerPC/PPCRegisterInfo.td index da7152edc76..d0e2e0fb1c3 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.td +++ b/lib/Target/PowerPC/PPCRegisterInfo.td @@ -72,14 +72,15 @@ def CTR : SPR<3>; def TBL : SPR<4>; def TBU : SPR<5>; -/// Register classes: one for floats and another for non-floats. -def GPRC : RegisterClass { +/// Register classes +def GPRC : + RegisterClass +{ let Methods = [{ iterator allocation_order_end(MachineFunction &MF) const { - return end()-13; // do not allocate r0-r12 + return end()-9; // do not allocate r1-r10 } }]; } @@ -88,3 +89,4 @@ def FPRC : RegisterClass; +def CRRC : RegisterClass;