[PATCH] D27668: Remove IsMetadataMaterialized from BitcodeReader (NFC)
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 12 10:54:37 PST 2016
Okay, kill it. LGTM.
> On 2016-Dec-12, at 10:48, Teresa Johnson via Phabricator <reviews at reviews.llvm.org> wrote:
>
> tejohnson added a comment.
>
> Not sure I understand the flow requiring this either. LGTM
>
>
>
> ================
> Comment at: llvm/lib/Bitcode/Reader/BitcodeReader.cpp:3962
> case bitc::METADATA_BLOCK_ID:
> - if (ShouldLazyLoadMetadata && !IsMetadataMaterialized) {
> if (Error Err = rememberAndSkipMetadata())
> ----------------
> 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.
>
>
> https://reviews.llvm.org/D27668
>
>
>
More information about the llvm-commits
mailing list