llvm-project
62a967d5 - [RISCV] Return nullptr for PHI defs in VSETVLIInfo::getAVLDefMI (#97395)

Commit
1 year ago
[RISCV] Return nullptr for PHI defs in VSETVLIInfo::getAVLDefMI (#97395) When checking if a VSETVLIInfo is compatible, we call hasEquallyZeroAVL if only the AVL-zeroness is demanded. This will try to lookup the defining MachineInstr (to check if it's an ADDI immediate) via getAVLDefMI, but in it we were asserting that the VSETVLIInfo's AVL wouldn't come from a phi. It turns out this can happen in normal circumstances. This causes a crash when compiling highway, so this fixes it by relaxing the assertion.
Author
Parents
Loading