llvm-project
9d1b578a - [RISCV] Shrink deleted dead ADDI's use if coalesced in RISCVInsertVSETVLI (#166729)

Commit
90 days ago
[RISCV] Shrink deleted dead ADDI's use if coalesced in RISCVInsertVSETVLI (#166729) If two vsetvlis are coalesced (or during insertion when a VSETVLIInfo turns out to be compatible), we may end up with a dead ADDI that we delete. Normally these are LIs (addi $x0, imm), but it's possible for the first operand to be a virtual register. Make sure we shrink the live interval of it when we remove it to avoid crashes. Fixes #166613
Author
Parents
Loading