From da7515a37879543e77e7e9e12adb33a3816e7e5e Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Wed, 30 Jun 2004 21:54:50 +0000 Subject: [PATCH] * Allow more registers to be allocated from the general register pool * Define the condition register class git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14510 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCRegisterInfo.td | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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; -- 2.34.1