[llvm-commits] [llvm] r91836 - /llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
Evan Cheng
evan.cheng at apple.com
Mon Dec 21 11:53:39 PST 2009
Author: evancheng
Date: Mon Dec 21 13:53:39 2009
New Revision: 91836
URL: http://llvm.org/viewvc/llvm-project?rev=91836&view=rev
Log:
Delete the instruction just before the function terminates for consistency sake.
Modified:
llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=91836&r1=91835&r2=91836&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Mon Dec 21 13:53:39 2009
@@ -3148,8 +3148,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) {
@@ -3216,6 +3214,9 @@
// exitMBB:
// ...
BB = exitMBB;
+
+ F->DeleteMachineInstr(MI); // The instruction is gone now.
+
return BB;
}
More information about the llvm-commits
mailing list