llvm-project
5b91756c - [RISCV][Peephole] Checking regclass compatibility in VMV (#138844)

Commit
1 year ago
[RISCV][Peephole] Checking regclass compatibility in VMV (#138844) Without checking the regclass compatibility, this pass may generate bad machine code. ``` *** Bad machine code: Illegal virtual register for instruction *** - function: main - basic block: %bb.0 entry (0x9209848) - instruction: %3:vrnov0 = PseudoVXOR_VV_MF2_MASK %0:vr(tied-def 0), %0:vr, %0:vr, %4:vmv0, 0, 5, 0 - operand 1: %0:vr(tied-def 0) Expected a VRNoV0 register, but got a VR register ``` --------- Co-authored-by: Luke Lau <luke_lau@icloud.com>
Author
Parents
Loading