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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
For pseudo probes we would like to keep their original debug location
Is this accurate? we just don't want to have non-zero discriminator for probes, but we don't really care about whether their debug metadata point to original debug location or not. In this particular case, there's just no need to fill in call debug info if probe from inlinee originally doesn't have debug info.
llvm/lib/Transforms/Utils/InlineFunction.cpp | ||
---|---|---|
1645–1646 | nit: follow the style above, as we don't want to make a single complicated condition check in the future. // ... if (isa<PseudoProbeInst>(BI)) continue; |
nit: follow the style above, as we don't want to make a single complicated condition check in the future.