This is an archive of the discontinued LLVM Phabricator instance.

[BOLT][NFCI] Avoid calling registerName() twice
ClosedPublic

Authored by maksfb on Oct 17 2022, 2:48 PM.

Details

Summary

Calling registerName() for the same symbol twice, even with a different
size, has no effect other than the lookup overhead. Avoid the
redundancy.

Fixes facebookincubator/BOLT#299

Diff Detail

Event Timeline

maksfb created this revision.Oct 17 2022, 2:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 17 2022, 2:48 PM
Herald added a subscriber: treapster. · View Herald Transcript
maksfb requested review of this revision.Oct 17 2022, 2:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 17 2022, 2:48 PM
Amir accepted this revision.Oct 17 2022, 4:14 PM
This revision is now accepted and ready to land.Oct 17 2022, 4:14 PM
This revision was automatically updated to reflect the committed changes.