https://llvm.org/bugs/show_bug.cgi?id=25482

            Bug ID: 25482
           Summary: Debug info not maintained in AutoFDO
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: DebugInfo
          Assignee: unassignedb...@nondot.org
          Reporter: daniel...@gmail.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

If -fprofile-sample-use is specified, clang will set
CodeGenOptions::LocTrackingOnly and make the FE emit debug info. However, as
the debug info is not emitted in the final binary, there are several issues
that prevents the debug info from being updated correctly:

* The discriminator will not be applied due to !hasDebugInfo(F) check
* Inline stack is not maintained during function inlining

In general, we need frontend to pass down a parameter to let backend
optimization know that debug info still needs to be maintained.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to