From be2dceff48559e637df0b4970dc1ae3cba255ba5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 12 Apr 2005 15:12:51 +0000 Subject: [PATCH] Put out* into the allocation order, allowing the register allocator to coallesce moves into outgoing args. llvm-svn: 21249 --- lib/Target/IA64/IA64RegisterInfo.td | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/Target/IA64/IA64RegisterInfo.td b/lib/Target/IA64/IA64RegisterInfo.td index f67bc00e23f..be2adb347d6 100644 --- a/lib/Target/IA64/IA64RegisterInfo.td +++ b/lib/Target/IA64/IA64RegisterInfo.td @@ -249,14 +249,13 @@ def GR : RegisterClass // these last 15 are special (look down) - + out4, out5, out6, out7, + r0, r1, r2, r12, r13, r15, r22]> // these last 7 are special (look down) { let Methods = [{ iterator allocation_order_end(MachineFunction &MF) const { - int numReservedRegs=15; // the 15 special registers r0,r1,r2,r12,r13 etc + int numReservedRegs=7; // the 15 special registers r0,r1,r2,r12,r13 etc // we also can't allocate registers for use as locals if they're // already required as 'out' registers numReservedRegs+=MF.getInfo()->outRegsUsed;