[llvm] r203590 - Range-ify a loop.
Owen Anderson
resistor at mac.com
Tue Mar 11 10:37:49 PDT 2014
Author: resistor
Date: Tue Mar 11 12:37:48 2014
New Revision: 203590
URL: http://llvm.org/viewvc/llvm-project?rev=203590&view=rev
Log:
Range-ify a loop.
Modified:
llvm/trunk/lib/Target/ARM/MLxExpansionPass.cpp
Modified: llvm/trunk/lib/Target/ARM/MLxExpansionPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/MLxExpansionPass.cpp?rev=203590&r1=203589&r2=203590&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/MLxExpansionPass.cpp (original)
+++ llvm/trunk/lib/Target/ARM/MLxExpansionPass.cpp Tue Mar 11 12:37:48 2014
@@ -385,11 +385,8 @@ bool MLxExpansion::runOnMachineFunction(
isSwift = STI->isSwift();
bool Modified = false;
- for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E;
- ++MFI) {
- MachineBasicBlock &MBB = *MFI;
+ for (MachineBasicBlock &MBB : Fn)
Modified |= ExpandFPMLxInstructions(MBB);
- }
return Modified;
}
More information about the llvm-commits
mailing list