[PATCH] D17920: Query the StringMap only once when creating MDString (NFC)

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 6 14:28:52 PST 2016


joker.eph created this revision.
joker.eph added a reviewer: dexonsmith.
joker.eph added a subscriber: llvm-commits.

Loading IR with debug info improves MDString::get() from 19ms to 10ms.
This is a rework of D16597 with adding an "emplace" method on the StringMap
to avoid requiring the MDString move ctor to be public.

http://reviews.llvm.org/D17920

Files:
  include/llvm/ADT/StringMap.h
  include/llvm/IR/Metadata.h
  lib/IR/Metadata.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17920.49925.patch
Type: text/x-patch
Size: 4049 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160306/8e090f54/attachment.bin>


More information about the llvm-commits mailing list