[llvm] 619c501 - [Analysis] Use drop_begin (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 22 00:46:38 PDT 2023
Author: Kazu Hirata
Date: 2023-09-22T00:46:32-07:00
New Revision: 619c50125b98163f94367d8c2b4b5f5291cc4405
URL: https://github.com/llvm/llvm-project/commit/619c50125b98163f94367d8c2b4b5f5291cc4405
DIFF: https://github.com/llvm/llvm-project/commit/619c50125b98163f94367d8c2b4b5f5291cc4405.diff
LOG: [Analysis] Use drop_begin (NFC)
Added:
Modified:
llvm/lib/Analysis/ScalarEvolution.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 43f09b7e79bd58a..4e5157970dc0719 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -6541,8 +6541,7 @@ ScalarEvolution::getRangeRefIter(const SCEV *S,
// Use getRangeRef to compute ranges for items in the worklist in reverse
// order. This will force ranges for earlier operands to be computed before
// their users in most cases.
- for (const SCEV *P :
- reverse(make_range(WorkList.begin() + 1, WorkList.end()))) {
+ for (const SCEV *P : reverse(drop_begin(WorkList))) {
getRangeRef(P, SignHint);
if (auto *UnknownS = dyn_cast<SCEVUnknown>(P))
More information about the llvm-commits
mailing list