forked from OSchip/llvm-project
[ADCE] Use succ_empty (NFC)
This commit is contained in:
parent
2b84784a25
commit
0c03d1328c
|
@ -643,7 +643,7 @@ void AggressiveDeadCodeElimination::computeReversePostOrder() {
|
|||
SmallPtrSet<BasicBlock*, 16> Visited;
|
||||
unsigned PostOrder = 0;
|
||||
for (auto &BB : F) {
|
||||
if (succ_begin(&BB) != succ_end(&BB))
|
||||
if (!succ_empty(&BB))
|
||||
continue;
|
||||
for (BasicBlock *Block : inverse_post_order_ext(&BB,Visited))
|
||||
BlockInfo[Block].PostOrder = PostOrder++;
|
||||
|
|
Loading…
Reference in New Issue