[llvm-commits] [llvm] r145969 - /llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
Bill Wendling
isanbard at gmail.com
Tue Dec 6 13:34:01 PST 2011
Author: void
Date: Tue Dec 6 15:34:01 2011
New Revision: 145969
URL: http://llvm.org/viewvc/llvm-project?rev=145969&view=rev
Log:
Encode the total stack if there isn't a frame.
Modified:
llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FrameLowering.cpp?rev=145969&r1=145968&r2=145969&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FrameLowering.cpp Tue Dec 6 15:34:01 2011
@@ -564,12 +564,13 @@
CompactUnwindEncoding |= (StackAdjust & 0xFF) << 16;
CompactUnwindEncoding |= RegEnc & 0x7FFF;
} else {
- if ((StackSize & 0xFF) == StackSize) {
+ uint32_t TotalStackSize = StackAdjust + StackSize;
+ if ((TotalStackSize & 0xFF) == TotalStackSize) {
// Frameless stack with a small stack size.
CompactUnwindEncoding |= 0x02000000;
// Encode the stack size.
- CompactUnwindEncoding |= (StackSize & 0xFF) << 16;
+ CompactUnwindEncoding |= (TotalStackSize & 0xFF) << 16;
} else {
if ((StackAdjust & 0x7) != StackAdjust)
// The extra stack adjustments are too big for us to handle.
More information about the llvm-commits
mailing list