diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-09 20:12:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-09 20:12:44 +0000 |
commit | 68a0d0984db8975ad9c7abbfedd80ef8427e797a (patch) | |
tree | 14b9d184aad16a6ce6e0cdede471eff27df1ca9f | |
parent | 4c55c633d9fd795e0e39642daa07e592c7a285aa (diff) |
make sure ar.pfs is in a register class, this fixes test/CodeGen/IA64/ret-0.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48118 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/IA64/IA64RegisterInfo.td | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Target/IA64/IA64RegisterInfo.td b/lib/Target/IA64/IA64RegisterInfo.td index 83c5d64531..dd72dc3008 100644 --- a/lib/Target/IA64/IA64RegisterInfo.td +++ b/lib/Target/IA64/IA64RegisterInfo.td @@ -418,8 +418,9 @@ def GR : RegisterClass<"IA64", [i64], 64, r96, r97, r98, r99, r100, r101, r102, r103, r104, r105, r106, r107, r108, r109, r110, r111, r112, r113, r114, r115, r116, r117, r118, r119, + // last 17 are special (look down) r120, r121, r122, r123, r124, r125, r126, r127, - r0, r1, r2, r5, r12, r13, r22, rp]> // last 16 are special (look down) + r0, r1, r2, r5, r12, r13, r22, rp, AR_PFS]> { let MethodProtos = [{ iterator allocation_order_begin(const MachineFunction &MF) const; @@ -434,8 +435,9 @@ def GR : RegisterClass<"IA64", [i64], 64, GRClass::iterator GRClass::allocation_order_end(const MachineFunction &MF) const { - int numReservedRegs=8;// the 8 special registers r0,r1,r2,r5,r12,r13 etc - + // the 9 special registers r0,r1,r2,r5,r12,r13 etc + int numReservedRegs=9; + // we also can't allocate registers for use as locals if they're already // required as 'out' registers numReservedRegs+=MF.getInfo<IA64FunctionInfo>()->outRegsUsed; |