[all-commits] [llvm/llvm-project] 670044: RISCV: Maintain VL/VTYPE liveness when clearing de...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Fri Sep 11 01:13:03 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6700445cfe301eb079e13ed1079fb86d1f7b1402
      https://github.com/llvm/llvm-project/commit/6700445cfe301eb079e13ed1079fb86d1f7b1402
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-09-11 (Fri, 11 Sep 2026)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
    A llvm/test/CodeGen/RISCV/rvv/vsetvli-dead-vl-vtype-liveness.mir

  Log Message:
  -----------
  RISCV: Maintain VL/VTYPE liveness when clearing dead flags in InsertVSETVLI (#222862)

Drop the stale VL/VTYPE ranges when a dead flag is cleared.

RISCVInsertVSETVLI marks the VL and VTYPE defs of an explicit VSETVLI as
live by clearing their dead flags, but did not update LiveIntervals. When a def
was previously a dead def, its live range is a zero-length dead-def segment
ending at the def slot; clearing the flag extends the def past that slot
without extending the range leaving a segment that references no instruction.

Co-authored-by: Claude claude-opus-4.8 <noreply at anthropic.com>



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