[llvm-commits] [llvm] r144350 - /llvm/trunk/lib/Target/X86/X86FrameLowering.cpp

Bill Wendling isanbard at gmail.com
Thu Nov 10 16:59:14 PST 2011


Author: void
Date: Thu Nov 10 18:59:14 2011
New Revision: 144350

URL: http://llvm.org/viewvc/llvm-project?rev=144350&view=rev
Log:
If we have to reset the calculation of the compact encoding, then also reset the
"saved register" index.
<rdar://problem/10430076>

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=144350&r1=144349&r2=144350&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FrameLowering.cpp Thu Nov 10 18:59:14 2011
@@ -518,6 +518,7 @@
 
       CFAOffset = 0;
       memset(SavedRegs, 0, sizeof(SavedRegs));
+      SavedRegIdx = 6;
       InstrOffset += MoveInstrSize;
     } else if (Opc == SubtractInstr) {
       if (StackAdjust)





More information about the llvm-commits mailing list