[all-commits] [llvm/llvm-project] e26564: [DebugInfo][InstrRef] Track all of DBG_PHIs operands

Jeremy Morse via All-commits all-commits at lists.llvm.org
Tue Oct 5 06:01:52 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e265644b324424bbc00185293594d3207150ee6e
      https://github.com/llvm/llvm-project/commit/e265644b324424bbc00185293594d3207150ee6e
  Author: Jeremy Morse <jeremy.morse at sony.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    M llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
    A llvm/test/DebugInfo/MIR/InstrRef/dbg-phi-subregister-location.mir

  Log Message:
  -----------
  [DebugInfo][InstrRef] Track all of DBG_PHIs operands

An important part of the instruction referencing solution is that we
identify all the registers that values move between before we then compute
an SSA-like function from the machine code, and from the variable
intrinsics. DBG_PHIs weren't causing all the subregisters of their operands
to be tracked; this patch forces that to happen.

The practical implications were that not enough space is allocated for
storing values when analysing the function -- asan will crash on the
attached test case with an unpatched compiler. Non-asan llc's will produce
a DBG_VALUE $noreg, where it should be $dil.

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




More information about the All-commits mailing list