This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo][InstrRef] Don't check liveness of any debug instruction operand
ClosedPublic

Authored by jmorse on Jan 21 2022, 7:26 AM.

Details

Summary

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

Diff Detail

Event Timeline

jmorse created this revision.Jan 21 2022, 7:26 AM
jmorse requested review of this revision.Jan 21 2022, 7:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 21 2022, 7:26 AM
Orlando accepted this revision.Jan 21 2022, 7:54 AM

LGTM

This revision is now accepted and ready to land.Jan 21 2022, 7:54 AM
This revision was landed with ongoing or failed builds.Jan 28 2022, 7:05 AM
This revision was automatically updated to reflect the committed changes.