This is an archive of the discontinued LLVM Phabricator instance.

Query the StringMap only once when creating MDString (NFC)
ClosedPublic

Authored by mehdi_amini on Jan 26 2016, 12:34 PM.

Details

Summary

Loading IR with debug info improves MDString::get() from 19ms to 10ms.

Diff Detail

Event Timeline

mehdi_amini retitled this revision from to Query the StringMap only once when creating MDString (NFC).
mehdi_amini updated this object.
mehdi_amini added a reviewer: dexonsmith.
mehdi_amini added a subscriber: llvm-commits.
pete accepted this revision.Jan 26 2016, 1:21 PM
pete added a reviewer: pete.
pete added a subscriber: pete.

Nice fix. This makes a lot of sense.

LGTM.

This revision is now accepted and ready to land.Jan 26 2016, 1:21 PM

It seems this CL broke LLDB Windows buildbot - http://lab.llvm.org:8011/builders/lldb-windows7-android/builds/4316
Could you take a look?

It sounded like Duncan had some pretty strong feelings against this -
should it have really been committed?

It should have been fixed in the meantime by a subsequent commit. Let me know if it is not the case.

mehdi_amini edited edge metadata.Mar 6 2016, 2:26 PM