[all-commits] [llvm/llvm-project] 6cf11f: [GlobalISel][DebugInfo] Salvage trivially dead ins...

Vladislav Dzhidzhoev via All-commits all-commits at lists.llvm.org
Fri Sep 16 17:55:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6cf11f44627967c00adecd48b8ab9b4e97d627fd
      https://github.com/llvm/llvm-project/commit/6cf11f44627967c00adecd48b8ab9b4e97d627fd
  Author: Vladislav Dzhidzhoev <vdzhidzhoev at accesssoftek.com>
  Date:   2022-09-17 (Sat, 17 Sep 2022)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp
    M llvm/lib/CodeGen/GlobalISel/Legalizer.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/select-dbg-value.mir

  Log Message:
  -----------
  [GlobalISel][DebugInfo] Salvage trivially dead instructions

Use salvageDebugInfo for instructions erased as trivially dead in
GlobalISel.

It would be helpful to implement support of G_PTR_ADD and G_FRAME_INDEX
in salvageDebugInfo in future in order to preserve more variable
location.

Reviewed by: arsenm

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




More information about the All-commits mailing list