This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho][nfc] Canonicalize all pointers to InputSections early on
ClosedPublic

Authored by int3 on Oct 27 2021, 8:30 PM.

Details

Summary

Having to remember to call canonical() all over the place is
error-prone; let's do it in a centralized location instead. It also
appears to improve performance slightly.

           base           diff           difference (95% CI)
sys_time   0.984 ± 0.009  0.983 ± 0.014  [  -0.8% ..   +0.6%]
user_time  6.508 ± 0.035  6.475 ± 0.036  [  -0.8% ..   -0.2%]
wall_time  5.321 ± 0.034  5.300 ± 0.033  [  -0.7% ..   -0.1%]
samples    36             23

Diff Detail

Event Timeline

int3 created this revision.Oct 27 2021, 8:30 PM
Herald added a project: Restricted Project. · View Herald Transcript
int3 requested review of this revision.Oct 27 2021, 8:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2021, 8:30 PM
thakis accepted this revision.Oct 28 2021, 6:43 PM
thakis added a subscriber: thakis.

lg

This revision is now accepted and ready to land.Oct 28 2021, 6:43 PM