[PATCH] D25435: Add -femit-accurate-debug-info to emit more debug info for sample pgo profile collection
Eric Christopher via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 9 18:40:59 PST 2016
echristo added inline comments.
================
Comment at: lib/CodeGen/CGDebugInfo.cpp:2743-2745
if (LinkageName == Name || (!CGM.getCodeGenOpts().EmitGcovArcs &&
!CGM.getCodeGenOpts().EmitGcovNotes &&
+ !CGM.getCodeGenOpts().ProfileDebug &&
----------------
danielcdh wrote:
> echristo wrote:
> > Should we be encapsulating all of these for profile debug info? I.e. I think coverage analysis is going to want the same things.
> Do you mean that -fcoverage also implies -fprofile-debug?
>
> I think the reason we introduce -fprofile-debug is that it has different requirments for debug info than coverage/sanitizer. E.g. we want to emit discriminator for -fprofile-debug, but not coverage/sanitizer.
So, what are the differences here? I imagine that profile debugging will want accurate source information. Perhaps we should hash this out in the thread that dblaikie has started on llvm-dev.
https://reviews.llvm.org/D25435
More information about the llvm-commits
mailing list