This is an archive of the discontinued LLVM Phabricator instance.

Remove IsMetadataMaterialized from BitcodeReader (NFC)
ClosedPublic

Authored by mehdi_amini on Dec 11 2016, 8:01 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

mehdi_amini retitled this revision from to Remove IsMetadataMaterialized from BitcodeReader (NFC).
mehdi_amini updated this object.
mehdi_amini added reviewers: pcc, dexonsmith.
mehdi_amini added a subscriber: llvm-commits.
tejohnson edited edge metadata.Dec 12 2016, 10:48 AM

Not sure I understand the flow requiring this either. LGTM

llvm/lib/Bitcode/Reader/BitcodeReader.cpp
3962 ↗(On Diff #81043)

The existing IsMetadataMaterialized flag would only ever make a difference here if we already materialized some functions (which materializes any already deferred metadata and sets IsMetadataMaterialized=true). It isn't clear to me when we would encounter a module-level metadata block after materializing a function. Even if we did, removing this flag just means deferring these newly encountered blocks, then we would materialize the newly deferred metadata block once we materialize the next GV anyway.

This revision was automatically updated to reflect the committed changes.