[all-commits] [llvm/llvm-project] fd29a4: [Pseudo Probe] Use the name from debug info to com...

ictwanglei via All-commits all-commits at lists.llvm.org
Wed Mar 22 22:49:15 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd29a4d24267eef0f11d238cb4a32b07d56d6c5c
  Author: wlei <wlei at fb.com>
  Date:   2023-03-22 (Wed, 22 Mar 2023)

  Changed paths:
    M llvm/include/llvm/IR/MDBuilder.h
    M llvm/lib/IR/MDBuilder.cpp
    M llvm/lib/Transforms/IPO/SampleProfileProbe.cpp

  Log Message:
  [Pseudo Probe] Use the name from debug info to compute GUID in probe desc

This is to fix a GUID mismatch while decoding pseudo probe, a GUID from the inline tree is not in the GUID2FuncDescMap. It turned out that frontend could change the function name making it different from the one in debug info(https://reviews.llvm.org/D111009). Here change to use the function name from debug info to be consistent with the probe name from the inline stack.

Reviewed By: hoy, wenlei

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

More information about the All-commits mailing list