This is an archive of the discontinued LLVM Phabricator instance.

Use Blob to record MDString
AbandonedPublic

Authored by mehdi_amini on Mar 21 2016, 6:46 PM.

Details

Reviewers
tejohnson
Summary

This makes encoding/decoding much simpler/faster. This is taking
a bit more space because of alignment over the current encoding
which is already fixed 8-bits.

  • llvm-bcanalyzer reports on a RelWithDebInfo compile of DAGISelEmitter.cpp that the space occupied by the MDString goes from 12134612b to 12586813b (+3.7%). The total file goes from 18513491b to 18965683b (+2.4%).
  • MaterializeMetadata (during ThinLTO-link of llvm-tblgen) goes from 8.2s to 6.4s (-24.4%).

Diff Detail

Event Timeline

mehdi_amini retitled this revision from to Use Blob to record MDString.
mehdi_amini updated this object.
mehdi_amini added a reviewer: tejohnson.
mehdi_amini added a subscriber: llvm-commits.
tejohnson edited edge metadata.Mar 28 2016, 9:18 PM

Is this obsolete with Duncan's change?