Skip to content

Commit 619c501

Browse files
[Analysis] Use drop_begin (NFC)
1 parent 73779bb commit 619c501

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6541,8 +6541,7 @@ ScalarEvolution::getRangeRefIter(const SCEV *S,
65416541
// Use getRangeRef to compute ranges for items in the worklist in reverse
65426542
// order. This will force ranges for earlier operands to be computed before
65436543
// their users in most cases.
6544-
for (const SCEV *P :
6545-
reverse(make_range(WorkList.begin() + 1, WorkList.end()))) {
6544+
for (const SCEV *P : reverse(drop_begin(WorkList))) {
65466545
getRangeRef(P, SignHint);
65476546

65486547
if (auto *UnknownS = dyn_cast<SCEVUnknown>(P))

0 commit comments

Comments
 (0)