llvm-project
e87ac294 - [NFC][CodeGen] Refactor subregister index verification for MIR (#181921)

Commit
35 days ago
[NFC][CodeGen] Refactor subregister index verification for MIR (#181921) Refactor register class/subreg-index verification against the instruction specified class: - Avoid inflating the register's class (i.e., no need to call `getLargestLegalSuperClass`). - Check validity with `getMatchingSuperRegClass(RC, DRC, SubIdx) == RC`. - Add some explanatory comments for this check. - Extended a unit test to exercise this verification failure.
Author
Parents
Loading