[PATCH] D79297: [COFF] Avoid allocating temporary vectors during ICF

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 4 07:27:19 PDT 2020


rnk added a comment.

> Heap profiling with ETW shows that LLD allocates 4,053,721 bytes of heap
>  memory over its lifetime, and ~800,000 of them come from assocEquals.

I misspoke here, I didn't understand the WPA heap profiler API. These numbers are for individual allocations.

I wasn't able to measure much speed improvement, but it makes LLD faster under the heap profiler. :) Fewer heap allocation stack traces for it to process.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79297/new/

https://reviews.llvm.org/D79297





More information about the llvm-commits mailing list