[all-commits] [llvm/llvm-project] 0791f9: [DebugInfo] Fix updateDbgUsersToReg to support DBG...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Fri May 7 03:51:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0791f968fee259e5c34523167bd58179b8b081c2
      https://github.com/llvm/llvm-project/commit/0791f968fee259e5c34523167bd58179b8b081c2
  Author: Stephen Tozer <Stephen.Tozer at Sony.com>
  Date:   2021-05-07 (Fri, 07 May 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachineRegisterInfo.h
    M llvm/lib/CodeGen/MachineCopyPropagation.cpp
    A llvm/test/DebugInfo/ARM/machine-cp-updates-dbg-reg.mir

  Log Message:
  -----------
  [DebugInfo] Fix updateDbgUsersToReg to support DBG_VALUE_LIST

This patch modifies updateDbgUsersToReg to properly handle
DBG_VALUE_LIST instructions, by replacing the hard-coded operand indices
(i.e. getOperand(0)) with the more general getDebugOperandsForReg(), and
updating the register for all matching operands.

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




More information about the All-commits mailing list