This is an archive of the discontinued LLVM Phabricator instance.

Reduce the number of attributes attached to each function
ClosedPublic

Authored by serge-sans-paille on Feb 10 2021, 12:46 AM.

Details

Summary

This takes advantage of the implicit default behavior to reduce the number of
attributes, which in turns reduces compilation time. I've observed -3% in
instruction count when compiling sqlite3 amalgamation with -O0

Diff Detail

Event Timeline

serge-sans-paille requested review of this revision.Feb 10 2021, 12:46 AM
serge-sans-paille created this revision.
nikic accepted this revision.Feb 10 2021, 11:42 AM

LGTM

Possibly some of these should be converted to enum attributes...

This revision is now accepted and ready to land.Feb 10 2021, 11:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 16 2021, 7:20 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript