[llvm] r236544 - use range-based for-loop; NFC

Sanjay Patel spatel at rotateright.com
Tue May 5 14:20:53 PDT 2015


Author: spatel
Date: Tue May  5 16:20:52 2015
New Revision: 236544

URL: http://llvm.org/viewvc/llvm-project?rev=236544&view=rev
Log:
use range-based for-loop; NFC

Modified:
    llvm/trunk/lib/Target/X86/X86VZeroUpper.cpp

Modified: llvm/trunk/lib/Target/X86/X86VZeroUpper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86VZeroUpper.cpp?rev=236544&r1=236543&r2=236544&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86VZeroUpper.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86VZeroUpper.cpp Tue May  5 16:20:52 2015
@@ -281,8 +281,8 @@ bool VZeroUpperInserter::runOnMachineFun
   // Process all blocks. This will compute block exit states, record the first
   // unguarded call in each block, and add successors of dirty blocks to the
   // DirtySuccessors list.
-  for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I)
-    processBasicBlock(*I);
+  for (MachineBasicBlock &MBB : MF)
+    processBasicBlock(MBB);
 
   // If any YMM regs are live in to this function, add the entry block to the
   // DirtySuccessors list





More information about the llvm-commits mailing list