[all-commits] [llvm/llvm-project] ecd7a0: [RISCV] Add basic cost model for vector casting

Yeting Kuo via All-commits all-commits at lists.llvm.org
Mon Mar 21 23:17:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ecd7a0132a344af1451d262e226fad3eeb233b84
      https://github.com/llvm/llvm-project/commit/ecd7a0132a344af1451d262e226fad3eeb233b84
  Author: Yeting Kuo <yeting.kuo at sifive.com>
  Date:   2022-03-22 (Tue, 22 Mar 2022)

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

  Log Message:
  -----------
  [RISCV] Add basic cost model for vector casting

To perform the cost model of vector casting, the patch consider most vector
casts as their scalar form and consider those vector form of free scalr castings
as 1.

Reviewed By: craig.topper

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




More information about the All-commits mailing list