[llvm-branch-commits] [llvm-branch] r93482 - /llvm/branches/Apple/Zoidberg/lib/Target/ARM/ARMISelLowering.cpp

Jim Grosbach grosbach at apple.com
Thu Jan 14 16:29:42 PST 2010


Author: grosbach
Date: Thu Jan 14 18:29:42 2010
New Revision: 93482

URL: http://llvm.org/viewvc/llvm-project?rev=93482&view=rev
Log:
Merge 91836

Modified:
    llvm/branches/Apple/Zoidberg/lib/Target/ARM/ARMISelLowering.cpp

Modified: llvm/branches/Apple/Zoidberg/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Zoidberg/lib/Target/ARM/ARMISelLowering.cpp?rev=93482&r1=93481&r2=93482&view=diff

==============================================================================
--- llvm/branches/Apple/Zoidberg/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/branches/Apple/Zoidberg/lib/Target/ARM/ARMISelLowering.cpp Thu Jan 14 18:29:42 2010
@@ -3140,8 +3140,6 @@
   unsigned incr = MI->getOperand(2).getReg();
   DebugLoc dl = MI->getDebugLoc();
 
-  F->DeleteMachineInstr(MI);   // The instruction is gone now.
-
   bool isThumb2 = Subtarget->isThumb2();
   unsigned ldrOpc, strOpc;
   switch (Size) {
@@ -3208,6 +3206,9 @@
   //  exitMBB:
   //   ...
   BB = exitMBB;
+
+  F->DeleteMachineInstr(MI);   // The instruction is gone now.
+
   return BB;
 }
 





More information about the llvm-branch-commits mailing list