This is an archive of the discontinued LLVM Phabricator instance.

[CGSCC] Add pass which counts the max number of times we visit a function
ClosedPublic

Authored by aeubanks on Jan 29 2023, 3:55 PM.

Details

Summary

This will help with finding potential pathological CGSCC cases.

Diff Detail

Event Timeline

aeubanks created this revision.Jan 29 2023, 3:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 29 2023, 3:55 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
aeubanks requested review of this revision.Jan 29 2023, 3:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 29 2023, 3:55 PM
asbirlea accepted this revision.Jan 30 2023, 9:27 AM
This revision is now accepted and ready to land.Jan 30 2023, 9:27 AM
lenary added a subscriber: lenary.Jan 30 2023, 11:54 AM
lenary added inline comments.
llvm/test/Other/count-visits.ll
7

We're seeing test failures for this on non-asserts builds, which correspond to the message in llvm/lib/Support/Statistic.cpp:250 about needing asserts to be enabled for statistics to work.

aeubanks added inline comments.Jan 30 2023, 12:01 PM
llvm/test/Other/count-visits.ll
7