[all-commits] [llvm/llvm-project] 067047: [DebugInfo][InstrRef] Handle non-directly reachabl...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Fri May 19 03:30:18 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0670470a8ded8ece91444722a81a9b02b93dcf4a
      https://github.com/llvm/llvm-project/commit/0670470a8ded8ece91444722a81a9b02b93dcf4a
  Author: Stephen Tozer <Stephen.Tozer at Sony.com>
  Date:   2023-05-19 (Fri, 19 May 2023)

  Changed paths:
    M llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
    A llvm/test/DebugInfo/X86/instr-ref-unreachable.mir

  Log Message:
  -----------
  [DebugInfo][InstrRef] Handle non-directly reachable DBG_PHIs in LiveDebugValues

Fixes: https://github.com/llvm/llvm-project/issues/62725

This patch fixes an error in which a DBG_INSTR_REF referring to a DBG_PHI in a
block that is not directly reachable from the entry block results in a crash
during LiveDebugValues. Note that this fix prevents a crash from occurring, but
will give undef locations to users of these PHIs even if a valid location exists.

Reviewed By: jmorse

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




More information about the All-commits mailing list