This is an archive of the discontinued LLVM Phabricator instance.

CodeGenPrepare: Reorder check for cold and shouldOptimizeForSize
ClosedPublic

Authored by arsenm on Jan 31 2020, 11:59 AM.

Details

Summary

shouldOptimizeForSize is showing up in a profile, spending around 10%
of the pass time in one function. This should probably not be so slow,
but the much cheaper attribute check should be done first anyway.

Diff Detail

Event Timeline

arsenm created this revision.Jan 31 2020, 11:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 31 2020, 11:59 AM
This revision is now accepted and ready to land.Feb 4 2020, 10:55 AM