aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-04-16 00:23:12 +0000
committerEric Fiselier <eric@efcs.ca>2016-04-16 00:23:12 +0000
commit500886841dadba249d8a95f04b2f72eb1c188606 (patch)
tree718c584bc390a08e88d96439bf267fb4e8e0eefa /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent50154d4ec401043c58e5c74367fc63e6e9c7647d (diff)
downloadllvm-500886841dadba249d8a95f04b2f72eb1c188606.zip
llvm-500886841dadba249d8a95f04b2f72eb1c188606.tar.gz
llvm-500886841dadba249d8a95f04b2f72eb1c188606.tar.bz2
Teach map/unordered_map how to optimize 'emplace(Key, T)'.
In cases where emplace is called with two arguments and the first one matches the key_type we can Key to check for duplicates before allocating. This patch expands on work done by dexonsmith@apple.com. llvm-svn: 266498
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions