[all-commits] [llvm/llvm-project] 9d1b57: [RISCV] Shrink deleted dead ADDI's use if coalesce...

Luke Lau via All-commits all-commits at lists.llvm.org
Thu Nov 6 06:19:14 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d1b578a2237e9c65993d3b9f959e64de184e479
      https://github.com/llvm/llvm-project/commit/9d1b578a2237e9c65993d3b9f959e64de184e479
  Author: Luke Lau <luke at igalia.com>
  Date:   2025-11-06 (Thu, 06 Nov 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
    M llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll
    M llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.mir

  Log Message:
  -----------
  [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



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list