This is an archive of the discontinued LLVM Phabricator instance.

MetadataLoader: simplify old type ref upgrade by removing a redundant set (NFC)
Needs RevisionPublic

Authored by mehdi_amini on Dec 23 2016, 10:18 PM.

Details

Reviewers
pcc
dexonsmith
Summary

I'm still trying to understand the logic, hopefully this is correct
(at least the validation is still passing).

Event Timeline

mehdi_amini retitled this revision from to MetadataLoader: simplify old type ref upgrade by removing a redundant set (NFC).
mehdi_amini updated this object.
mehdi_amini added reviewers: pcc, dexonsmith.
mehdi_amini added a subscriber: llvm-commits.
dexonsmith requested changes to this revision.Oct 19 2020, 6:52 PM

I think we discussed this in person at the time, and my understanding of metadata-loading is now a bit hazy, but IIRC this was a performance optimization. IOW, I think removing this would be valid, but would be a major performance regression when linking in old bitcode files that have debug info in them.

This revision now requires changes to proceed.Oct 19 2020, 6:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 19 2020, 6:52 PM
Herald added a subscriber: hiraditya. · View Herald Transcript