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

Mark Santaniello via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 14 12:56:45 PDT 2023


marksantaniello added a comment.

Another thing worth considering is just to use const char* as the map key.  I believe it's safe in this case, and smaller than StringRef which is a pointer and a length.


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