projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b84784
)
[ADCE] Use succ_empty (NFC)
author
Kazu Hirata
<kazu@google.com>
Mon, 16 Nov 2020 03:52:59 +0000
(19:52 -0800)
committer
Kazu Hirata
<kazu@google.com>
Mon, 16 Nov 2020 03:52:59 +0000
(19:52 -0800)
llvm/lib/Transforms/Scalar/ADCE.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Scalar/ADCE.cpp
b/llvm/lib/Transforms/Scalar/ADCE.cpp
index
c3709b9
..
2b64973
100644
(file)
--- a/
llvm/lib/Transforms/Scalar/ADCE.cpp
+++ b/
llvm/lib/Transforms/Scalar/ADCE.cpp
@@
-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++;