[all-commits] [llvm/llvm-project] de159a: [NVPTX][DebugInfo] avoid emitting extra .loc direc...

Alex MacLean via All-commits all-commits at lists.llvm.org
Tue Mar 19 18:32:47 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: de159aeca95edc38ddd4d729ea91b4b8160d9b83
      https://github.com/llvm/llvm-project/commit/de159aeca95edc38ddd4d729ea91b4b8160d9b83
  Author: Alex MacLean <amaclean at nvidia.com>
  Date:   2024-03-19 (Tue, 19 Mar 2024)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
    A llvm/test/DebugInfo/NVPTX/no-extra-loc.ll

  Log Message:
  -----------
  [NVPTX][DebugInfo] avoid emitting extra .loc directives (#84584)

This change removes an extra, unneeded debug directive emitted in the
PTX at the beginning on non-empty functions:
```nvptx
.visible .func  (.param .b32 func_retval0) foo(
        .param .b32 foo_param_0,
        .param .b32 foo_param_1
)
{
        .reg .b32    %r<4>;
        .loc    1 26 0             <---- unneeded (removed by the PR)
$L__func_begin0:
        .loc    1 26 0
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list