This is an archive of the discontinued LLVM Phabricator instance.

[LoopVectorize] Only fetch BFI if profile summary available
ClosedPublic

Authored by nikic on Feb 28 2023, 3:13 AM.

Details

Summary

BlockFrequencyInfo should generally only be fetched in PGO builds where a PSI profile summary is available. However, LoopVectorize was fetching it unconditionally.

This results in a compile-time improvement: http://llvm-compile-time-tracker.com/compare.php?from=f332498f9880d276890562fb861a375a13bfd9d9&to=7b224f4a8ef2355298051f8f326eccda4cb07b41&stat=instructions%3Au

Diff Detail

Event Timeline

nikic created this revision.Feb 28 2023, 3:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 28 2023, 3:13 AM
nikic requested review of this revision.Feb 28 2023, 3:13 AM
fhahn accepted this revision.Feb 28 2023, 4:49 AM

LGTM, thanks!

This revision is now accepted and ready to land.Feb 28 2023, 4:49 AM
This revision was landed with ongoing or failed builds.Feb 28 2023, 5:16 AM
This revision was automatically updated to reflect the committed changes.