[all-commits] [llvm/llvm-project] 345a35: [RISCV][VLOPT] Avoid crash when user produces scal...

Michael Maitland via All-commits all-commits at lists.llvm.org
Tue Dec 17 09:07:51 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 345a35259ccfdc5031bc4c4bdb0f47959fa75806
      https://github.com/llvm/llvm-project/commit/345a35259ccfdc5031bc4c4bdb0f47959fa75806
  Author: Michael Maitland <michaeltmaitland at gmail.com>
  Date:   2024-12-17 (Tue, 17 Dec 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp
    A llvm/test/CodeGen/RISCV/rvv/vl-opt-user-scalar-def.mir

  Log Message:
  -----------
  [RISCV][VLOPT] Avoid crash when user produces scalar def (#120255)

I found this crash when trying to enable the VLOptimizer pass. We need
this patch before we can enable by default. The old assert was not
checking that USE and DEF were vector registers. The correct condition
is guarded at the callsite of tryReduceVL.



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