[PM][CGSCC] Add a helper to update the call graph from SCC passes
authorJohannes Doerfert <johannes@jdoerfert.de>
Mon, 30 Dec 2019 23:02:09 +0000 (17:02 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Mon, 3 Feb 2020 05:32:18 +0000 (23:32 -0600)
commit013774530898476debd4d65525f1c7ba942cabee
treed28b8ca259e81b5a3d18a5436465d5e54795a1cd
parent578d2e2cb14106a93dc820cff25a7f2bc93629bc
[PM][CGSCC] Add a helper to update the call graph from SCC passes

With this patch new trivial edges can be added to an SCC in a CGSCC
pass via the updateCGAndAnalysisManagerForCGSCCPass method. It shares
almost all the code with the existing
updateCGAndAnalysisManagerForFunctionPass method but it implements the
first step towards the TODOs.

This was initially part of D70927.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D72025
llvm/include/llvm/Analysis/CGSCCPassManager.h
llvm/lib/Analysis/CGSCCPassManager.cpp
llvm/unittests/Analysis/CGSCCPassManagerTest.cpp