summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2007-05-31 18:27:58 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2007-05-31 18:27:58 +0000
commit5b0757a4015f3be89723375a342d50d6f9fab8bb (patch)
tree5fd6c70c44fe55072f2dc78f45ba770a05fdcde2 /llvm/lib/CodeGen
parent96114686ae43f062d18133aee3b55636bda26fcd (diff)
downloadbcm5719-llvm-5b0757a4015f3be89723375a342d50d6f9fab8bb.tar.gz
bcm5719-llvm-5b0757a4015f3be89723375a342d50d6f9fab8bb.zip
Fix PR1424.
When a function has FP, the register scavenging spill slot offset already was calculated. llvm-svn: 37371
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/PrologEpilogInserter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
index 55172b563ed..0658ad23c8d 100644
--- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
@@ -428,7 +428,7 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) {
// Make sure the special register scavenging spill slot is closest to the
// stack pointer.
- if (RS) {
+ if (RS && !RegInfo->hasFP(Fn)) {
int SFI = RS->getScavengingFrameIndex();
if (SFI >= 0) {
// If stack grows down, we need to add size of find the lowest
OpenPOWER on IntegriCloud