git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256127
91177308-0d34-0410-b5e6-
96231b3b80d8
// It is safe to clobber EFLAGS at the end of a block of no successor has it
// live in.
if (Iter == E) {
// It is safe to clobber EFLAGS at the end of a block of no successor has it
// live in.
if (Iter == E) {
- for (MachineBasicBlock::succ_iterator SI = MBB.succ_begin(),
- SE = MBB.succ_end(); SI != SE; ++SI)
- if ((*SI)->isLiveIn(X86::EFLAGS))
+ for (MachineBasicBlock *S : MBB.successors())
+ if (S->isLiveIn(X86::EFLAGS))
return false;
return true;
}
return false;
return true;
}