[all-commits] [llvm/llvm-project] 5b6028: [RISCV][TTI] Implement cost of llvm.experimental.v...

Elvis Wang via All-commits all-commits at lists.llvm.org
Sun Mar 8 23:33:46 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b60283506928f6bae79545b2d8a7a979d7b39b6
      https://github.com/llvm/llvm-project/commit/5b60283506928f6bae79545b2d8a7a979d7b39b6
  Author: Elvis Wang <elvis.wang at sifive.com>
  Date:   2026-03-09 (Mon, 09 Mar 2026)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
    A llvm/test/Analysis/CostModel/RISCV/extract-last-active.ll

  Log Message:
  -----------
  [RISCV][TTI] Implement cost of llvm.experimental.vector.extract.last.active (#184067)

This patch implements the cost of
llvm.experimental.vector.extract.last.active which will lower to:
 vcpop.m a0, v0
 beqz a0, exit # Return passthru when the entire lane is inactive.
vid v10, v0.t
vredmaxu.vs v10, v10, v10
vmv.v.s a0, v10
zext.b a0, a0
vslidedown v8, v8,

This patch also helps conditional-scalar-assignment (CSA) works for
scalable vector.



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