[PowerPC] iterate on the SmallSet directly; NFC

This commit is contained in:
Chen Zheng 2021-10-22 06:18:07 +00:00
parent 13755436bb
commit 86a5c32616
1 changed files with 4 additions and 6 deletions

View File

@ -789,9 +789,8 @@ bool PPCLoopInstrFormPrep::updateFormPrep(Loop *L,
MadeChange |= rewriteLoadStores(L, Bucket, BBChanged, UpdateForm);
if (MadeChange)
for (auto &BB : L->blocks())
if (BBChanged.count(BB))
DeleteDeadPHIs(BB);
for (auto *BB : BBChanged)
DeleteDeadPHIs(BB);
return MadeChange;
}
@ -811,9 +810,8 @@ bool PPCLoopInstrFormPrep::dispFormPrep(Loop *L, SmallVector<Bucket, 16> &Bucket
}
if (MadeChange)
for (auto &BB : L->blocks())
if (BBChanged.count(BB))
DeleteDeadPHIs(BB);
for (auto *BB : BBChanged)
DeleteDeadPHIs(BB);
return MadeChange;
}