You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[RISCV][Peephole] Checking regclass compatibility in VMV (llvm#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>
0 commit comments