aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-16 03:39:44 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-16 03:39:44 +0000
commita77d073305acde5afa0b61daf3fe1a823ed8ad81 (patch)
tree73443ec4b64969cb1f80902f3538b2c412c64335 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent0d2ef0158926973d6a977d71de5cc455cff2599a (diff)
downloadllvm-a77d073305acde5afa0b61daf3fe1a823ed8ad81.zip
llvm-a77d073305acde5afa0b61daf3fe1a823ed8ad81.tar.gz
llvm-a77d073305acde5afa0b61daf3fe1a823ed8ad81.tar.bz2
ValueMapper: Stop memoizing ConstantAsMetadata
Stop memoizing ConstantAsMetadata in ValueMapper::mapMetadata. Now we have to recompute it, but these metadata aren't particularly common, and it restricts the lifetime of the Metadata map unnecessarily. (The motivation is that I have a patch which uses a single Metadata map for the lifetime of IRMover. Mehdi profiled r266446 with the patch applied and we saw a pretty big speedup in lib/Linker.) llvm-svn: 266513
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions