[all-commits] [llvm/llvm-project] af50c4: [RISCV] Fix crash costing cttz.elts with zvl32b. (...

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Sep 24 09:56:47 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af50c4643d0cfd4acb81c7b6b3b0618ed2700be8
      https://github.com/llvm/llvm-project/commit/af50c4643d0cfd4acb81c7b6b3b0618ed2700be8
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-09-24 (Thu, 24 Sep 2026)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/RISCV/cttz_elts.ll

  Log Message:
  -----------
  [RISCV] Fix crash costing cttz.elts with zvl32b. (#226181)

With +zvl32b fixed-length vectors are not legalized to RVV types and
getTypeLegalizationCost returns a scalar MVT. Skip non-vector types and
return Invalid instead of asserting in the getVectorElementType call
below.

Hit this while fuzzing some LoopVectorize changes.

Aided by Claude Opus.

PR: https://github.com/llvm/llvm-project/pull/226181



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