[all-commits] [llvm/llvm-project] 76fd78: [MVerifier] Don't check liveness of any debug inst...

Jeremy Morse via All-commits all-commits at lists.llvm.org
Fri Jan 28 07:05:55 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76fd78b4b35a6831af0b37ab74764892231077eb
      https://github.com/llvm/llvm-project/commit/76fd78b4b35a6831af0b37ab74764892231077eb
  Author: Jeremy Morse <jeremy.morse at sony.com>
  Date:   2022-01-28 (Fri, 28 Jan 2022)

  Changed paths:
    M llvm/lib/CodeGen/MachineVerifier.cpp
    A llvm/test/DebugInfo/MIR/InstrRef/accept-nonlive-reg-phis.mir

  Log Message:
  -----------
  [MVerifier] Don't check liveness of any debug instruction operands

Shiny new DBG_PHI instruction usually have physical registers as operands
-- however, the machine verifier checks to see whether they're live, and
occasionally this fails. There's a filter for DBG_VALUE instructions to not
get verified in this way: expand it to exempt all debug instructions from
liveness checking, which means DBG_PHIs get treated like DBG_VALUEs.

This also future proofs against us adding new debug instructions.

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




More information about the All-commits mailing list