[all-commits] [llvm/llvm-project] d13785: [SamplePGO] Fix callsite sample lookup to use dwar...

Hongtao Yu via All-commits all-commits at lists.llvm.org
Mon Nov 1 21:25:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d137854412533d9c01c2ef9795ae6514a66c2d8b
      https://github.com/llvm/llvm-project/commit/d137854412533d9c01c2ef9795ae6514a66c2d8b
  Author: Hongtao Yu <hoy at fb.com>
  Date:   2021-11-01 (Mon, 01 Nov 2021)

  Changed paths:
    M llvm/lib/ProfileData/SampleProf.cpp
    M llvm/test/Transforms/SampleProfile/profile-format-compress.ll
    M llvm/test/Transforms/SampleProfile/profile-format.ll

  Log Message:
  -----------
  [SamplePGO] Fix callsite sample lookup to use dwarf names when dwarf linkage name isn't available.

When linkage name isn't available in dwarf (ususally the case of C code),  looking up callee samples should be based on the dwarf name instead of using an empty string.

Also fixing a test issue where using empty string to look up callee samples accidentally returns the correct samples because it is treated as indirect call.

Reviewed By: wenlei

Differential Revision: https://reviews.llvm.org/D112948




More information about the All-commits mailing list