[llvm] r270467 - use range-loop; NFCI
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Mon May 23 11:00:51 PDT 2016
Author: spatel
Date: Mon May 23 13:00:50 2016
New Revision: 270467
URL: http://llvm.org/viewvc/llvm-project?rev=270467&view=rev
Log:
use range-loop; NFCI
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=270467&r1=270466&r2=270467&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86VZeroUpper.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86VZeroUpper.cpp Mon May 23 13:00:50 2016
@@ -319,10 +319,8 @@ bool VZeroUpperInserter::runOnMachineFun
if (BBState.ExitState == PASS_THROUGH) {
DEBUG(dbgs() << "MBB #" << MBB.getNumber()
<< " was Pass-through, is now Dirty-out.\n");
- for (MachineBasicBlock::succ_iterator SI = MBB.succ_begin(),
- SE = MBB.succ_end();
- SI != SE; ++SI)
- addDirtySuccessor(**SI);
+ for (MachineBasicBlock *Succ : MBB.successors())
+ addDirtySuccessor(*Succ);
}
}
More information about the llvm-commits
mailing list