[CSSPGO] Avoid repeatedly computing md5 hash code for pseudo probe inline contexts.
authorHongtao Yu <hoy@fb.com>
Wed, 25 Aug 2021 18:57:48 +0000 (11:57 -0700)
committerHongtao Yu <hoy@fb.com>
Mon, 30 Aug 2021 17:11:47 +0000 (10:11 -0700)
commitf39256e3a5dd1f3d7311703003608340ffdb42bc
tree1c9850345a51522b4fa327de61c8260cc37aebf8
parent881677b58a1f88076fccee5f32152d981de66b74
[CSSPGO] Avoid repeatedly computing md5 hash code for pseudo probe inline contexts.

Md5 hashing is expansive. Using a hash map to look up already computed GUID for dwarf names. Saw a 2% build time improvement on an internal large application.

Reviewed By: wenlei

Differential Revision: https://reviews.llvm.org/D108722
llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.cpp
llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.h