SuccessChanges

Summary

  1. Add LazyCallGraph API to add function to RefSCC (details)
Commit 449a13509190b1c57e5fcf5cd7e8f0f647f564b4 by modocache
Add LazyCallGraph API to add function to RefSCC

Summary:
Depends on https://reviews.llvm.org/D70927.

`LazyCallGraph::addNewFunctionIntoSCC` allows users to insert a new
function node into a call graph, into a specific, existing SCC.

Extend this interface such that functions can be added even when they do
not belong in any existing SCC, but instead in a new SCC within an
existing RefSCC.

The ability to insert new functions as part of a RefSCC is necessary for
outlined functions that do not form a strongly connected cycle with the
function they are outlined from. An example of such a function would be the
coroutine funclets 'f.resume', etc., which are outlined from a coroutine 'f'.
Coroutine 'f' only references the funclets' addresses, it does not call
them directly.

Reviewers: jdoerfert, chandlerc, wenlei, hfinkel

Reviewed By: jdoerfert

Subscribers: hfinkel, JonChesterfield, mehdi_amini, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D72226
The file was modifiedllvm/unittests/Analysis/CGSCCPassManagerTest.cpp (diff)
The file was modifiedllvm/unittests/Analysis/LazyCallGraphTest.cpp (diff)
The file was modifiedllvm/include/llvm/Analysis/LazyCallGraph.h (diff)
The file was modifiedllvm/lib/Analysis/LazyCallGraph.cpp (diff)