summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-08-02 22:25:37 +0000
committerBill Wendling <isanbard@gmail.com>2009-08-02 22:25:37 +0000
commitd35fbe4595cd7486dd4084942c2ef817980cc4d5 (patch)
tree1de6eb5cd58e7733342e420bb8afb0e0780aa78c
parent31b44e8f6c273574f149b28937bcc562968aee4b (diff)
downloadbcm5719-llvm-d35fbe4595cd7486dd4084942c2ef817980cc4d5.tar.gz
bcm5719-llvm-d35fbe4595cd7486dd4084942c2ef817980cc4d5.zip
The x86 jit doesn't generate a def_cfa_offset unwind instruction after the
pushes in the function prolog if the function doesn't have any stack space, i.e. for a prolog like: 0x40011870: push %r15 0x40011872: push %r14 0x40011874: push %rbx Patch by Zoltan! llvm-svn: 77919
-rw-r--r--llvm/lib/Target/X86/X86RegisterInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86RegisterInfo.cpp b/llvm/lib/Target/X86/X86RegisterInfo.cpp
index 8c54aebb9ea..3fa53733c0d 100644
--- a/llvm/lib/Target/X86/X86RegisterInfo.cpp
+++ b/llvm/lib/Target/X86/X86RegisterInfo.cpp
@@ -1059,7 +1059,7 @@ void X86RegisterInfo::emitPrologue(MachineFunction &MF) const {
emitSPUpdate(MBB, MBBI, StackPtr, -(int64_t)NumBytes, Is64Bit, TII);
}
- if (!HasFP && needsFrameMoves && NumBytes) {
+ if (!HasFP && needsFrameMoves) {
// Mark end of stack pointer adjustment.
unsigned LabelId = MMI->NextLabelID();
BuildMI(MBB, MBBI, DL, TII.get(X86::DBG_LABEL)).addImm(LabelId);
OpenPOWER on IntegriCloud