aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC/PPCRegisterInfo.td
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-07-01 21:24:50 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-07-01 21:24:50 +0000
commit15eb0a15e568f46d2d2e56f8785b668fe8b48b13 (patch)
tree29495a7b3ffc3ddfa204fbb118319d9581bdd0d4 /lib/Target/PowerPC/PPCRegisterInfo.td
parent4363bdb0e5d20ebfa5b0a1f703c5a8102e637541 (diff)
downloadexternal_llvm-15eb0a15e568f46d2d2e56f8785b668fe8b48b13.zip
external_llvm-15eb0a15e568f46d2d2e56f8785b668fe8b48b13.tar.gz
external_llvm-15eb0a15e568f46d2d2e56f8785b668fe8b48b13.tar.bz2
* Do not allocate r0 as we use it indiscriminantly in the instr selector.
* Do not define CR register class because we don't (yet) have the i4 type git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14551 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCRegisterInfo.td')
-rw-r--r--lib/Target/PowerPC/PPCRegisterInfo.td8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.td b/lib/Target/PowerPC/PPCRegisterInfo.td
index d0e2e0f..d6e8175 100644
--- a/lib/Target/PowerPC/PPCRegisterInfo.td
+++ b/lib/Target/PowerPC/PPCRegisterInfo.td
@@ -75,12 +75,12 @@ def TBU : SPR<5>;
/// Register classes
def GPRC :
RegisterClass<i32, 4,
- [R0, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23, R24,
- R25, R26, R27, R28, R29, R30, R31, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10]>
+ [R11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23, R24, R25,
+ R26, R27, R28, R29, R30, R31, R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10]>
{
let Methods = [{
iterator allocation_order_end(MachineFunction &MF) const {
- return end()-9; // do not allocate r1-r10
+ return end()-10; // do not allocate r0-r10
}
}];
}
@@ -89,4 +89,4 @@ def FPRC : RegisterClass<f64, 8, [F0, F1, F2, F3, F4, F5, F6, F7,
F8, F9, F10, F11, F12, F13, F14, F15, F16, F17, F18, F19, F20, F21,
F22, F23, F24, F25, F26, F27, F28, F29, F30, F31]>;
-def CRRC : RegisterClass<i4, 4, [CR0, CR1, CR2, CR3, CR4, CR5, CR6, CR7]>;
+//def CRRC : RegisterClass<i4, 1, [CR0, CR1, CR2, CR3, CR4, CR5, CR6, CR7]>;