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
- Repository
- rL LLVM
Event Timeline
Missed adding llvm-commits as subscriber initially. Adding this note as a ping to the mailing list.
lib/CodeGen/MachineVerifier.cpp | ||
---|---|---|
993 ↗ | (On Diff #103184) | 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. |
lib/CodeGen/MachineVerifier.cpp | ||
---|---|---|
993 ↗ | (On Diff #103184) | Thanks for reviewing. Ok, so it's allowed to mix physregs and vregs? I'll upload a new patch that removes this check then. |
test/CodeGen/MIR/X86/subregister-index-operands.mir | ||
27 ↗ | (On Diff #103184) | Agreed, it won't fail, so I'll just leave this test as is. |
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.