diff options
| author | Luke Lau <luke@igalia.com> | 2025-11-06 22:18:52 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-06 14:18:52 +0000 |
| commit | 9d1b578a2237e9c65993d3b9f959e64de184e479 (patch) | |
| tree | 4a06dbcd8a5617aef0d0dde0806dd7a075256ba8 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 99bb7895fa8367eecee661ecc20932db00597461 (diff) | |
| download | llvm-9d1b578a2237e9c65993d3b9f959e64de184e479.zip llvm-9d1b578a2237e9c65993d3b9f959e64de184e479.tar.gz llvm-9d1b578a2237e9c65993d3b9f959e64de184e479.tar.bz2 | |
[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
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
