[PATCH] Support using sample profiles with partial debug info (driver)
David Blaikie
dblaikie at gmail.com
Tue Oct 21 12:22:12 PDT 2014
(driver code review should be sent to the cfe-commits list - just abandon
this CR and create a new one (because you can never get Phab to resend the
initial, informative (with patch attached, summary, etc) email again to the
list - so just switching mailing lists won't produce a good experience for
Clang developers reading their mailing list who aren't subscribed to this
one))
On Tue, Oct 21, 2014 at 12:11 PM, Diego Novillo <dnovillo at google.com> wrote:
> Hi echristo, dblaikie,
>
> When using a profile, we used to require the use -gmlt so that we could
> get access to the line locations. This is used to match line numbers in
> the input profile to the line numbers in the function's IR.
>
> But this is actually not necessary. The driver can provide source
> location tracking without the emission of debug information. In these
> cases, the annotation 'llvm.dbg.cu' is missing from the IR, but the
> actual line location annotations are still present.
>
> This patch tells the driver to only emit source location tracking
> when -fprofile-sample-use is present in the command line.
>
> http://reviews.llvm.org/D5888
>
> Files:
> lib/Frontend/CompilerInvocation.cpp
> test/Frontend/Inputs/profile-sample-use-loc-tracking.prof
> test/Frontend/profile-sample-use-loc-tracking.c
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141021/210f7247/attachment.html>
More information about the llvm-commits
mailing list