summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/InterferenceCache.h
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-05-19 04:56:48 +0000
committerZachary Turner <zturner@google.com>2017-05-19 04:56:48 +0000
commit59ab6a381602f102d259706b7cdb13208e31a7bc (patch)
treed48571bd881f4296439f74a0a95f8fc1ddc923a9 /llvm/lib/CodeGen/InterferenceCache.h
parentee49f4943c3f83513ed2c230f12df3f40f355e03 (diff)
downloadbcm5719-llvm-59ab6a381602f102d259706b7cdb13208e31a7bc.tar.gz
bcm5719-llvm-59ab6a381602f102d259706b7cdb13208e31a7bc.zip
[CodeView] Reduce memory usage in TypeSerializer.
We were using a BumpPtrAllocator to allocate stable storage for a record, then trying to insert that into a hash table. If a collision occurred, the bytes were never inserted and the allocation was unnecessary. At the cost of an extra hash computation, check first if it exists, and only if it does do we allocate and insert. llvm-svn: 303407
Diffstat (limited to 'llvm/lib/CodeGen/InterferenceCache.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud