@@ -2286,8 +2286,7 @@ void CallsiteContextGraph<DerivedCCG, FuncTy,
2286
2286
std::vector<CallInfo> AllCalls;
2287
2287
AllCalls.reserve (Node->MatchingCalls .size () + 1 );
2288
2288
AllCalls.push_back (Node->Call );
2289
- AllCalls.insert (AllCalls.end (), Node->MatchingCalls .begin (),
2290
- Node->MatchingCalls .end ());
2289
+ llvm::append_range (AllCalls, Node->MatchingCalls );
2291
2290
2292
2291
// First see if we can partition the calls by callee function, creating new
2293
2292
// nodes to host each set of calls calling the same callees. This is
@@ -2468,9 +2467,8 @@ bool CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::partitionCallsByCallee(
2468
2467
// The first call becomes the primary call for this caller node, and the
2469
2468
// rest go in the matching calls list.
2470
2469
Info->Node ->setCall (Info->Calls .front ());
2471
- Info->Node ->MatchingCalls .insert (Info->Node ->MatchingCalls .end (),
2472
- Info->Calls .begin () + 1 ,
2473
- Info->Calls .end ());
2470
+ llvm::append_range (Info->Node ->MatchingCalls ,
2471
+ llvm::drop_begin (Info->Calls ));
2474
2472
// Save the primary call to node correspondence so that we can update
2475
2473
// the NonAllocationCallToContextNodeMap, which is being iterated in the
2476
2474
// caller of this function.
@@ -4117,8 +4115,7 @@ bool CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::assignFunctions() {
4117
4115
// Ignore original Node if we moved all of its contexts to clones.
4118
4116
if (!Node->emptyContextIds ())
4119
4117
ClonesWorklist.push_back (Node);
4120
- ClonesWorklist.insert (ClonesWorklist.end (), Node->Clones .begin (),
4121
- Node->Clones .end ());
4118
+ llvm::append_range (ClonesWorklist, Node->Clones );
4122
4119
4123
4120
// Now walk through all of the clones of this callsite Node that we need,
4124
4121
// and determine the assignment to a corresponding clone of the current
0 commit comments