[all-commits] [llvm/llvm-project] 03a365: [RISCV] Add cost model for SK_Broadcast

ChunyuLiao via All-commits all-commits at lists.llvm.org
Thu Apr 28 22:28:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 03a3654203bbdfb3ede44f5e0b09f2787b033bd9
      https://github.com/llvm/llvm-project/commit/03a3654203bbdfb3ede44f5e0b09f2787b033bd9
  Author: LiaoChunyu <chunyu at iscas.ac.cn>
  Date:   2022-04-29 (Fri, 29 Apr 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/RISCV/rvv-shuffle.ll
    A llvm/test/Analysis/CostModel/RISCV/shuffle-broadcast.ll

  Log Message:
  -----------
  [RISCV] Add cost model for SK_Broadcast

Add cost model for broadcast shuffle in RISCVTTIImpl::getShuffleCost
with scalable vector. The cost model might not the best.

For scalable vector, BasicTTIImpl::getShuffleCost return invalid cost,
so this patch relies on the existing cost model in BasicTTIImpl.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D124101




More information about the All-commits mailing list