[llvm] r205444 - [C++11, ARM64] Range based for loops in load/store pair optimizer.
Jim Grosbach
grosbach at apple.com
Wed Apr 2 11:00:54 PDT 2014
Author: grosbach
Date: Wed Apr 2 13:00:53 2014
New Revision: 205444
URL: http://llvm.org/viewvc/llvm-project?rev=205444&view=rev
Log:
[C++11,ARM64] Range based for loops in load/store pair optimizer.
No functional change intended.
Modified:
llvm/trunk/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp
Modified: llvm/trunk/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp?rev=205444&r1=205443&r2=205444&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp (original)
+++ llvm/trunk/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp Wed Apr 2 13:00:53 2014
@@ -931,11 +931,8 @@ bool ARM64LoadStoreOpt::runOnMachineFunc
TRI = TM.getRegisterInfo();
bool Modified = false;
- for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E;
- ++MFI) {
- MachineBasicBlock &MBB = *MFI;
+ for (auto &MBB : Fn)
Modified |= optimizeBlock(MBB);
- }
return Modified;
}
More information about the llvm-commits
mailing list