From e00e5ded511162b2a74bc2092bf2ae1d61a047dd Mon Sep 17 00:00:00 2001 From: Duraid Madina Date: Sat, 9 Apr 2005 11:53:00 +0000 Subject: [PATCH] ok, the "ia64 has a boatload of registers" joke stopped being funny today ;) * fix overallocation of integer (stacked) registers: we can't allocate registers for local use if they are required as output registers this fixes 'toast' in the test suite, and all sorts of larger programs like bzip2 etc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21178 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/IA64/IA64RegisterInfo.td | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/Target/IA64/IA64RegisterInfo.td b/lib/Target/IA64/IA64RegisterInfo.td index 148ecb7eb3e..8a9032c548e 100644 --- a/lib/Target/IA64/IA64RegisterInfo.td +++ b/lib/Target/IA64/IA64RegisterInfo.td @@ -254,7 +254,12 @@ def GR : RegisterClass()->outRegsUsed; + + return end()-numReservedRegs; // hide registers appropriately } }]; }