[CodeGen] Verify tied use and def have same subreg (#244279)
Extend the MachineVerifier to check that a tied use and def of the same
virtual register must either use the same subregister index or both use
no subregister. Otherwise the tie cannot be satisfied.
`TwoAddressInstructionPass` currently ignores subregister indices when
the virtual register is already identical. GreedyRA and RegAllocFast
both miscompile this shape.
No compilation pipeline seems to be using this shape at the moment.
This came up in the review of #237249.
---------
Signed-off-by: Lukas Sommer <lukas.sommer@amd.com>