summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCRegisterInfo.td
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-11-16 22:43:37 +0000
committerJim Laskey <jlaskey@mac.com>2006-11-16 22:43:37 +0000
commit2f616bff7ef1e2e08d6d23c2a8b42ec2bfebb173 (patch)
tree345098bfe09f8de197e21e72161fcb04533d2259 /lib/Target/PowerPC/PPCRegisterInfo.td
parent1b0a2d8370b28de0d3998b0303bc3dad983989d9 (diff)
downloadllvm-2f616bff7ef1e2e08d6d23c2a8b42ec2bfebb173.tar.gz
llvm-2f616bff7ef1e2e08d6d23c2a8b42ec2bfebb173.tar.bz2
llvm-2f616bff7ef1e2e08d6d23c2a8b42ec2bfebb173.tar.xz
This is a general clean up of the PowerPC ABI. Address several problems and
bugs including making sure that the TOS links back to the previous frame, that the maximum call frame size is not included twice when using frame pointers, no longer growing the frame on calls, double storing of SP and a cleaner/faster dynamic alloca. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31792 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCRegisterInfo.td')
-rw-r--r--lib/Target/PowerPC/PPCRegisterInfo.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.td b/lib/Target/PowerPC/PPCRegisterInfo.td
index 439650df3f..7f5668800c 100644
--- a/lib/Target/PowerPC/PPCRegisterInfo.td
+++ b/lib/Target/PowerPC/PPCRegisterInfo.td
@@ -224,7 +224,7 @@ def GPRC : RegisterClass<"PPC", [i32], 32,
}
GPRCClass::iterator
GPRCClass::allocation_order_end(const MachineFunction &MF) const {
- if (hasFP(MF))
+ if (needsFP(MF))
return end()-4; // don't allocate R31, R0, R1, LR
else
return end()-3; // don't allocate R0, R1, LR
@@ -247,7 +247,7 @@ def G8RC : RegisterClass<"PPC", [i64], 64,
}
G8RCClass::iterator
G8RCClass::allocation_order_end(const MachineFunction &MF) const {
- if (hasFP(MF))
+ if (needsFP(MF))
return end()-4;
else
return end()-3;