[all-commits] [llvm/llvm-project] e546d0: [RISCV][TTI] Add cost model for ROTL/ROTR (#170824)

Sudharsan Veeravalli via All-commits all-commits at lists.llvm.org
Fri Dec 5 18:18:17 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e546d0f5d4179ac95e464ea968f7759e61aea8a3
      https://github.com/llvm/llvm-project/commit/e546d0f5d4179ac95e464ea968f7759e61aea8a3
  Author: Sudharsan Veeravalli <svs at qti.qualcomm.com>
  Date:   2025-12-06 (Sat, 06 Dec 2025)

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

  Log Message:
  -----------
  [RISCV][TTI] Add cost model for ROTL/ROTR (#170824)

A funnel shift with the same first two operands is a rotate. When
`Zbb/Zbkb` is enabled we can use the `ROL(W)/ROR(I)(W)` instruction to
represent this. Add cost model support for this.

Similar to https://github.com/llvm/llvm-project/pull/169335 for AArch64.



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