[PseudoProbe] Do not force the calliste debug loc to inlined probes from __nodebug__...
authorHongtao Yu <hoy@fb.com>
Fri, 26 May 2023 05:41:58 +0000 (22:41 -0700)
committerHongtao Yu <hoy@fb.com>
Fri, 26 May 2023 20:00:16 +0000 (13:00 -0700)
commit23da2106246edd445b5eae105cbefe0493f4fd1d
treebdebd3ccf13367b848235c001aa2299c748489aa
parent7c91d82ab912fae8bafc1137d4c9b17bcfb7eba7
[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
llvm/lib/Transforms/Utils/InlineFunction.cpp
llvm/test/Transforms/SampleProfile/pseudo-probe-no-debug-info.ll [new file with mode: 0644]