[MachineVerifier] Fix crash on early clobbered subreg operands.
authorDaniil Fukalov <1671137+dfukalov@users.noreply.github.com>
Mon, 5 Sep 2022 14:07:55 +0000 (17:07 +0300)
committerDaniil Fukalov <1671137+dfukalov@users.noreply.github.com>
Mon, 5 Sep 2022 14:08:21 +0000 (17:08 +0300)
commit99d364d1f430f9727eb5d5e71889790f2dcab3e6
tree0fbc90b4520d73c1afb6b11ae50b8954bdeda703
parentffa62673004c3367dcf8aa01f2f7f9df13b19eed
[MachineVerifier] Fix crash on early clobbered subreg operands.

MachineVerifier tried to checkLivenessAtDef() ignoring it is actually a subreg.

The issue was with processing two subregs of the same reg are used in the same
instruction (e.g. inline asm): "def early-clobber" and other just "def".

Reviewed By: foad

Differential Revision: https://reviews.llvm.org/D126661
llvm/lib/CodeGen/MachineVerifier.cpp
llvm/test/MachineVerifier/verifier-ec-subreg-liveness.mir [new file with mode: 0644]