[all-commits] [llvm/llvm-project] b61cfc: [RISCV] Add cost modelling for vector widenning re...

Jianjian Guan via All-commits all-commits at lists.llvm.org
Thu Aug 4 00:32:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b61cfc91eac83dec7ded1ef1e6d9f9776751d2c0
      https://github.com/llvm/llvm-project/commit/b61cfc91eac83dec7ded1ef1e6d9f9776751d2c0
  Author: jacquesguan <Jianjian.Guan at streamcomputing.com>
  Date:   2022-08-04 (Thu, 04 Aug 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h

  Log Message:
  -----------
  [RISCV] Add cost modelling for vector widenning reduction.

In RVV, we use vwredsum.vs and vwredsumu.vs for vecreduce.add(ext(Ty A)) if the result type's width is twice of the input vector's SEW-width. In this situation, the cost of extended add reduction should be same as single-width add reduction. So as the vector float widenning reduction.

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




More information about the All-commits mailing list