forked from OSchip/llvm-project
ARM: Range based for-loop over block predecessors.
No functional change. llvm-svn: 205604
This commit is contained in:
parent
9ef3ad960d
commit
537f3ed838
|
@ -921,9 +921,8 @@ bool Thumb2SizeReduce::ReduceMBB(MachineBasicBlock &MBB) {
|
|||
HighLatencyCPSR = false;
|
||||
|
||||
// Check predecessors for the latest CPSRDef.
|
||||
for (MachineBasicBlock::pred_iterator
|
||||
I = MBB.pred_begin(), E = MBB.pred_end(); I != E; ++I) {
|
||||
const MBBInfo &PInfo = BlockInfo[(*I)->getNumber()];
|
||||
for (auto *Pred : MBB.predecessors()) {
|
||||
const MBBInfo &PInfo = BlockInfo[Pred->getNumber()];
|
||||
if (!PInfo.Visited) {
|
||||
// Since blocks are visited in RPO, this must be a back-edge.
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue