[llvm-commits] [llvm] r105653 - /llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
Jim Grosbach
grosbach at apple.com
Tue Jun 8 15:53:32 PDT 2010
Author: grosbach
Date: Tue Jun 8 17:53:32 2010
New Revision: 105653
URL: http://llvm.org/viewvc/llvm-project?rev=105653&view=rev
Log:
fix copy/paste/modify think-o
Modified:
llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp?rev=105653&r1=105652&r2=105653&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp Tue Jun 8 17:53:32 2010
@@ -694,7 +694,7 @@
}
// Try merging with the next instruction.
- MachineBasicBlock::iterator EndMBBI = MBB.begin();
+ MachineBasicBlock::iterator EndMBBI = MBB.end();
if (!DoMerge && MBBI != EndMBBI) {
MachineBasicBlock::iterator NextMBBI = llvm::next(MBBI);
while (NextMBBI != EndMBBI && NextMBBI->isDebugValue())
More information about the llvm-commits
mailing list