diff options
author | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2007-05-31 18:27:58 +0000 |
---|---|---|
committer | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2007-05-31 18:27:58 +0000 |
commit | 8d410b69384ae4e178b3b522ef3357290a714de5 (patch) | |
tree | c603aa95de95e7a71a0be8d44e7f201edefa4fff | |
parent | cb0a660142618410f107e5ae6d775e67efd9be18 (diff) |
Fix PR1424.
When a function has FP, the register scavenging spill slot offset already
was calculated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37371 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/PrologEpilogInserter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index 55172b563e..0658ad23c8 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/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 |