[llvm] 43a6a1e - [TRE] Use successors(BB) (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 15 19:13:14 PST 2020
Author: Kazu Hirata
Date: 2020-11-15T19:12:49-08:00
New Revision: 43a6a1e928b709d78ca28e944e5184af191c521f
URL: https://github.com/llvm/llvm-project/commit/43a6a1e928b709d78ca28e944e5184af191c521f
DIFF: https://github.com/llvm/llvm-project/commit/43a6a1e928b709d78ca28e944e5184af191c521f.diff
LOG: [TRE] Use successors(BB) (NFC)
Added:
Modified:
llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp b/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
index 1ad332a9b487..c5dc44330072 100644
--- a/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
@@ -282,7 +282,7 @@ static bool markTails(Function &F, bool &AllCallsAreTailCalls,
}
}
- for (auto *SuccBB : make_range(succ_begin(BB), succ_end(BB))) {
+ for (auto *SuccBB : successors(BB)) {
auto &State = Visited[SuccBB];
if (State < Escaped) {
State = Escaped;
More information about the llvm-commits
mailing list