[all-commits] [llvm/llvm-project] adace7: [DebugInfo] Enable variadic debug value salvaging

Stephen Tozer via All-commits all-commits at lists.llvm.org
Thu Jun 24 05:17:00 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: adace79652174d126be290cab42b3122569fe15d
      https://github.com/llvm/llvm-project/commit/adace79652174d126be290cab42b3122569fe15d
  Author: Stephen Tozer <Stephen.Tozer at Sony.com>
  Date:   2021-06-24 (Thu, 24 Jun 2021)

  Changed paths:
    M llvm/lib/Transforms/Utils/Local.cpp
    M llvm/test/DebugInfo/NVPTX/debug-info.ll
    M llvm/test/DebugInfo/salvage-gep.ll
    M llvm/test/DebugInfo/salvage-nonconst-binop.ll

  Log Message:
  -----------
  [DebugInfo] Enable variadic debug value salvaging

This patch enables the salvaging of debug values that may be calculated
from more than one SSA value, such as with binary operators that do not
use a constant argument. The actual functionality for this behaviour is
added in a previous commit (c7270567), but with the ability to actually
emit the resulting debug values switched off.

The reason for this is that the prior patch has been reverted several
times due to issues discovered downstream, some time after the actual
landing of the patch. The patch in question is rather large and touches
several widely used header files, and all issues discovered are more
related to the handling of variadic debug values as a whole rather than
the details of the patch itself. Therefore, to minimize the build time
impact and risk of conflicts involved in any potential future
revert/reapply of that patch, this significantly smaller patch (that
touches no header files) will instead be used as the capstone to enable
variadic debug value salvaging.

The review linked to this patch is mostly implemented by the previous
commit, c7270567, but also contains the changes in this patch.

Differential Revision: https://reviews.llvm.org/D91722




More information about the All-commits mailing list