@@ -2286,8 +2286,7 @@ void CallsiteContextGraph<DerivedCCG, FuncTy,
22862286 std::vector<CallInfo> AllCalls;
22872287 AllCalls.reserve (Node->MatchingCalls .size () + 1 );
22882288 AllCalls.push_back (Node->Call );
2289- AllCalls.insert (AllCalls.end (), Node->MatchingCalls .begin (),
2290- Node->MatchingCalls .end ());
2289+ llvm::append_range (AllCalls, Node->MatchingCalls );
22912290
22922291 // First see if we can partition the calls by callee function, creating new
22932292 // nodes to host each set of calls calling the same callees. This is
@@ -2468,9 +2467,8 @@ bool CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::partitionCallsByCallee(
24682467 // The first call becomes the primary call for this caller node, and the
24692468 // rest go in the matching calls list.
24702469 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 ));
24742472 // Save the primary call to node correspondence so that we can update
24752473 // the NonAllocationCallToContextNodeMap, which is being iterated in the
24762474 // caller of this function.
@@ -4117,8 +4115,7 @@ bool CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::assignFunctions() {
41174115 // Ignore original Node if we moved all of its contexts to clones.
41184116 if (!Node->emptyContextIds ())
41194117 ClonesWorklist.push_back (Node);
4120- ClonesWorklist.insert (ClonesWorklist.end (), Node->Clones .begin (),
4121- Node->Clones .end ());
4118+ llvm::append_range (ClonesWorklist, Node->Clones );
41224119
41234120 // Now walk through all of the clones of this callsite Node that we need,
41244121 // and determine the assignment to a corresponding clone of the current
0 commit comments