This is an archive of the discontinued LLVM Phabricator instance.

[lld] Add test to check for timer output
ClosedPublic

Authored by akhuang on Sep 16 2021, 11:23 AM.

Details

Summary

This test checks that timers are working and printing as expected.

I also seem to have changed the order of the timers in my globals refactoring
patch, so I fixed it here.

Diff Detail

Event Timeline

akhuang requested review of this revision.Sep 16 2021, 11:23 AM
akhuang created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 16 2021, 11:23 AM
aganea accepted this revision.Sep 16 2021, 11:35 AM

LTGM, thanks!

This revision is now accepted and ready to land.Sep 16 2021, 11:35 AM
This revision was landed with ongoing or failed builds.Sep 16 2021, 11:37 AM
This revision was automatically updated to reflect the committed changes.
mehdi_amini added a subscriber: mehdi_amini.

The timers.ll test is failing intermittently, can you look into this? See here for example: https://lab.llvm.org/buildbot/#/builders/139/builds/10288

Hm, a timer won't print out if the time is 0, and it seems like it's inconsistent when a timer will have no time on it.. I think I'll just remove the test for now.