summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-05-05 21:20:52 +0000
committerSanjay Patel <spatel@rotateright.com>2015-05-05 21:20:52 +0000
commitfbca70d767d58060cb9a39f98d9d12b7b7c22065 (patch)
treec39b154dcd14e533d32854c329f257306564c642 /llvm/lib/Target
parentf62b7fc317814af3088f12db6d32d6a2a7946f94 (diff)
downloadbcm5719-llvm-fbca70d767d58060cb9a39f98d9d12b7b7c22065.tar.gz
bcm5719-llvm-fbca70d767d58060cb9a39f98d9d12b7b7c22065.zip
use range-based for-loop; NFC
llvm-svn: 236544
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/X86/X86VZeroUpper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86VZeroUpper.cpp b/llvm/lib/Target/X86/X86VZeroUpper.cpp
index 99ba4c02a46..6925b272b4a 100644
--- a/llvm/lib/Target/X86/X86VZeroUpper.cpp
+++ b/llvm/lib/Target/X86/X86VZeroUpper.cpp
@@ -281,8 +281,8 @@ bool VZeroUpperInserter::runOnMachineFunction(MachineFunction &MF) {
// 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
OpenPOWER on IntegriCloud