diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-16 03:39:44 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-16 03:39:44 +0000 |
| commit | a77d073305acde5afa0b61daf3fe1a823ed8ad81 (patch) | |
| tree | 73443ec4b64969cb1f80902f3538b2c412c64335 /llvm/examples/BrainF/BrainFDriver.cpp | |
| parent | 0d2ef0158926973d6a977d71de5cc455cff2599a (diff) | |
| download | bcm5719-llvm-a77d073305acde5afa0b61daf3fe1a823ed8ad81.tar.gz bcm5719-llvm-a77d073305acde5afa0b61daf3fe1a823ed8ad81.zip | |
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/examples/BrainF/BrainFDriver.cpp')
0 files changed, 0 insertions, 0 deletions

