[all-commits] [llvm/llvm-project] 23da21: [PseudoProbe] Do not force the calliste debug loc ...

Hongtao Yu via All-commits all-commits at lists.llvm.org
Fri May 26 13:00:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 23da2106246edd445b5eae105cbefe0493f4fd1d
      https://github.com/llvm/llvm-project/commit/23da2106246edd445b5eae105cbefe0493f4fd1d
  Author: Hongtao Yu <hoy at fb.com>
  Date:   2023-05-26 (Fri, 26 May 2023)

  Changed paths:
    M llvm/lib/Transforms/Utils/InlineFunction.cpp
    A llvm/test/Transforms/SampleProfile/pseudo-probe-no-debug-info.ll

  Log Message:
  -----------
  [PseudoProbe] Do not force the calliste debug loc to inlined probes from __nodebug__ functions.

For pseudo probes we would like to keep their original dwarf discriminator (either a zero or null) until the first FS-discriminator pass. The inliner is a violation of that, given that it assigns inlinee instructions with no debug info with the that of the callsite. This is being disabled in this patch.

Reviewed By: wenlei

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




More information about the All-commits mailing list