Added MachineVerifier code to check register ties more thoroughly, especially so that physical registers that are tied are the same. This may help e.g. when creating MIR files.
Details
Diff Detail
Event Timeline
Missed adding llvm-commits as subscriber initially. Adding this note as a ping to the mailing list.
lib/CodeGen/MachineVerifier.cpp | ||
---|---|---|
993 | I'm not sure about that one. | |
test/CodeGen/MIR/X86/subregister-index-operands.mir | ||
27 ↗ | (On Diff #103184) | I would expect we add a new test instead of modifying this one. |
Removed the check that tied physregs and virtregs aren't mixed. Removed changes in a test that had such mixes.
Could you add a .mir test case that exposes this verifier diagnostic? (In test/CodeGen/MIR then pick a target)
Other than that, LGTM.
I'm not sure about that one.
Theoretically, you could have a not yet allocated vreg here. As long as the allocation does the right thing with the tie, that isn't an error.