OSDN Git Service

Query the StringMap only once when creating MDString (NFC)
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 16 Feb 2016 23:05:56 +0000 (23:05 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 16 Feb 2016 23:05:56 +0000 (23:05 +0000)
commit30d7b4334add9a5184d1323504cb4f80b66e30d9
tree2c6c510f2146797f7c0ec3817525753a06c7bfd5
parentf5146973a3a28fe9d7b107ded79b1f0fdad9656b
Query the StringMap only once when creating MDString (NFC)

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

Reviewers: dexonsmith

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D16597

From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261030 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Metadata.h
lib/IR/Metadata.cpp