[llvm] [Analysis] Visit orphan Functions in GCGPassManager catch-up loop (PR #194219)
via llvm-commits
llvm-commits at lists.llvm.org
Sat May 2 15:08:08 PDT 2026
SjoerdNijboer wrote:
> Would it work to somehow take advantage of `scc_iterator`'s internals? I'm thinking in terms of a false-by-default parameter (`includeUnreachableSCCs` or something), which when enabled tells the `scc_iterator` to keep going until there are no more unvisited nodes in the graph (essentially the same thing you have here, but inside the iterator).
I did it slightly different since I didn’t want to impact other passes. But yes, this seems to tidy up the code a lot.
https://github.com/llvm/llvm-project/pull/194219
More information about the llvm-commits
mailing list