[PATCH] D112852: [GlobalISel] Allow DBG_VALUE to use undefined vregs before LiveDebugValues
Jack Andersen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 17 14:10:14 PST 2021
jackoalan added inline comments.
================
Comment at: llvm/lib/CodeGen/MachineVerifier.cpp:1992
+ if (isFunctionTracksDebugUserValues || !MO->isUse() ||
+ !MI->isDebugValue() || !MRI->def_empty(Reg)) {
+ // If we're post-Select, we can't have gvregs anymore.
----------------
bogner wrote:
> Is this check in the right place? I'm seeing "Generic virtual register use cannot be undef" (just above) errors after this change on an out of tree target.
Does the error occur after the Debug Variable Analysis pass on a debug instruction?
If possible, it would be really helpful if a test could be created that triggers the error on the main branch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112852/new/
https://reviews.llvm.org/D112852
More information about the llvm-commits
mailing list