[PATCH] D87798: [NewPM][CGSCC] Handle newly added functions in updateCGAndAnalysisManagerForPass
Alina Sbirlea via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 21 12:18:29 PDT 2020
asbirlea accepted this revision.
asbirlea added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/lib/Analysis/CGSCCPassManager.cpp:519
+ for (Node *NewNode : NewNodes) {
+ G.initNode(*NewNode, *C);
+ }
----------------
aeubanks wrote:
> asbirlea wrote:
> > I'm not clear how adding this call impacts the Inliner.
> It shouldn't affect the inliner. For a given inline, the inliner will remove an edge, and potentially add new call/ref edges (corresponding to any call/ref edges in the inlined function). All of those will already have nodes since they were further down the call graph.
>
> This would only affect completely new functions being created (or potentially new calls to functions up the call graph, which would be a bug, not sure if that's caught by asserts or not).
Thank you for the clarification.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87798/new/
https://reviews.llvm.org/D87798
More information about the llvm-commits
mailing list