This is an archive of the discontinued LLVM Phabricator instance.

ThinLTO renaming: use module hash instead of position in the summary
ClosedPublic

Authored by mehdi_amini on Apr 10 2016, 9:25 PM.

Details

Summary

This is more robust to the link ordering

Diff Detail

Event Timeline

mehdi_amini retitled this revision from to ThinLTO renaming: use module hash instead of position in the summary.
mehdi_amini updated this object.
mehdi_amini added a reviewer: tejohnson.
mehdi_amini added a subscriber: llvm-commits.
tejohnson added a subscriber: pcc.

Adding pcc since this is different than his proposal to use a hash of external names in order to facilitate renaming in the compile step (and thus enable compiling some code to text early).

I think for now this is ok, as it is better than the current strategy with regards to link ordering effects, even if we want to eventually migrate to using the hash of external names.

One thing to note is that the module hash will itself need to change if pcc implements compiling some portions to text early, to ensure that the hash reflects differences in the non-bitcode portion.

I'm perfectly fine with the renaming not being stable (i.e. we can change it anytime).

pcc accepted this revision.Apr 11 2016, 1:14 PM
pcc edited edge metadata.

Seems reasonable enough to me if we can change this later.

This revision is now accepted and ready to land.Apr 11 2016, 1:14 PM
tejohnson accepted this revision.Apr 11 2016, 1:16 PM
tejohnson edited edge metadata.

Then LGTM too. Thanks

mehdi_amini closed this revision.Apr 11 2016, 11:31 PM

Thanks, r266018