[PATCH] D152490: [llvm-profdata] Use StringRef for CallTargetMap

Mark Santaniello via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 8 20:04:41 PDT 2023


marksantaniello added a comment.

Yeah I tested pretty much the same thing, and it was a big memory regression.  The problem is that, upon first insert, the DenseMap grows to 64 entries.  Even if I use a const char* key, the KV-pair is 16B, so 64 entries is 1K.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152490



More information about the llvm-commits mailing list