HomePhabricator

[ThinLTO] Delay metadata materializtion in function importer

Description

[ThinLTO] Delay metadata materializtion in function importer

The function importer was still materializing metadata when modules were
loaded for function importing. We only want to materialize it when we
are going to invoke the metadata linking postpass. Materializing it
before function importing is not only unnecessary, but also causes
metadata referenced by imported functions to be mapped in early, and
then not connected to the rest of the module level metadata when it is
ultimately linked in.

Augmented the test case to specifically check for the metadata being
properly connected, which it wasn't before this fix.

Details

Committed
tejohnsonJan 8 2016, 6:17 AM
Parents
rL257170: Call assumeNoOutOfBound only in updateDimensionality
Branches
Unknown
Tags
Unknown