[all-commits] [llvm/llvm-project] 6c23e9: [RISCV] Fix crash when trying to remove segment (#...

sc-clulzze via All-commits all-commits at lists.llvm.org
Thu Jul 3 08:16:01 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6c23e9e82c36afc1e68593cf7e4880612216c790
      https://github.com/llvm/llvm-project/commit/6c23e9e82c36afc1e68593cf7e4880612216c790
  Author: sc-clulzze <d.marakulin at syntacore.com>
  Date:   2025-07-03 (Thu, 03 Jul 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] Fix crash when trying to remove segment (#146524)

LiveInterval DefLI can be consisting of multiple segments, and SlotIndex
NewDefSI can be inside any of them. Currenty it is assumed that NewDefSI
belongs to the first segment, and when trying to call removeSegment,
clang crashes since there is no segment containing [DefLI.beginIndex(),
NewDefSI]

FIxes https://github.com/llvm/llvm-project/issues/146518



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