This is an archive of the discontinued LLVM Phabricator instance.

Remove -print-callgraph-sccs and -print-cfg-sccs
AbandonedPublic

Authored by aeubanks on Aug 3 2021, 4:26 PM.

Details

Reviewers
asbirlea
ctetreau
Summary

These don't seem used and don't seem super useful, and aren't ported to the new PM.

-passes=print-callgraph is similar to -print-callgraph-sccs.
-print-cfg-sccs doesn't seem relevant, not sure why we'd want to look at SCCs in a CFG.

Diff Detail

Event Timeline

aeubanks created this revision.Aug 3 2021, 4:26 PM
aeubanks requested review of this revision.Aug 3 2021, 4:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2021, 4:26 PM

I think the call graph SCC pass can be very useful to understand SCCs and debug CGSCC passes if it were also ported to the NPM.
AFAICT, the CFGSCC pass is just a utility to see the output of the scc_iterator, which has some good use cases of its own (inliner, globalsaa, etc).
I would prefer having these ported to the NPM instead of discarding them.

arsenm added a subscriber: arsenm.Dec 22 2021, 2:11 PM

I did just run into this not working and would like to not drop it

ormris removed a subscriber: ormris.Jan 18 2022, 4:26 PM
aeubanks abandoned this revision.Mar 24 2022, 2:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2022, 2:23 PM
llvm/test/Other/print-cfg-sccs.ll