[llvm-commits] [llvm] r42265 - /llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp

Dan Gohman djg at cray.com
Mon Sep 24 09:44:26 PDT 2007


Author: djg
Date: Mon Sep 24 11:44:26 2007
New Revision: 42265

URL: http://llvm.org/viewvc/llvm-project?rev=42265&view=rev
Log:
The code that used the StartLabelId label was removed, so remove the
code that creates the label too.

Modified:
    llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp

Modified: llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp?rev=42265&r1=42264&r2=42265&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp Mon Sep 24 11:44:26 2007
@@ -1278,18 +1278,12 @@
   MachineBasicBlock::iterator MBBI = MBB.begin();
   
   // Prepare for frame info.
-  unsigned FrameLabelId = 0, StartLabelId = 0;
+  unsigned FrameLabelId = 0;
   
   // Get the number of bytes to allocate from the FrameInfo
   uint64_t StackSize = MFI->getStackSize();
   uint64_t NumBytes = StackSize - X86FI->getCalleeSavedFrameSize();
 
-  if (MMI && MMI->needsFrameInfo()) {
-    // Mark function start
-    StartLabelId = MMI->NextLabelID();
-    BuildMI(MBB, MBBI, TII.get(X86::LABEL)).addImm(StartLabelId);
-  }
-
   if (hasFP(MF)) {
     // Get the offset of the stack slot for the EBP register... which is
     // guaranteed to be the last slot by processFunctionBeforeFrameFinalized.





More information about the llvm-commits mailing list