[PATCH] D117891: [DebugInfo][InstrRef] Don't check liveness of any debug instruction operand
Jeremy Morse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 21 07:26:43 PST 2022
jmorse created this revision.
jmorse added reviewers: uabelho, StephenTozer, Orlando.
Herald added a subscriber: hiraditya.
jmorse requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Should fix https://github.com/llvm/llvm-project/issues/53336
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D117891
Files:
llvm/lib/CodeGen/MachineVerifier.cpp
llvm/test/DebugInfo/MIR/InstrRef/accept-nonlive-reg-phis.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117891.401978.patch
Type: text/x-patch
Size: 4538 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220121/6a794303/attachment.bin>
More information about the llvm-commits
mailing list