[all-commits] [llvm/llvm-project] f39256: [CSSPGO] Avoid repeatedly computing md5 hash code ...

Hongtao Yu via All-commits all-commits at lists.llvm.org
Mon Aug 30 10:12:16 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f39256e3a5dd1f3d7311703003608340ffdb42bc
      https://github.com/llvm/llvm-project/commit/f39256e3a5dd1f3d7311703003608340ffdb42bc
  Author: Hongtao Yu <hoy at fb.com>
  Date:   2021-08-30 (Mon, 30 Aug 2021)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.cpp
    M llvm/lib/CodeGen/AsmPrinter/PseudoProbePrinter.h

  Log Message:
  -----------
  [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




More information about the All-commits mailing list