[all-commits] [llvm/llvm-project] b6b1c0: [RISCV] Add cost model for fp-mask cast op.

Jianjian Guan via All-commits all-commits at lists.llvm.org
Wed Aug 10 02:15:32 PDT 2022


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

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

  Log Message:
  -----------
  [RISCV] Add cost model for fp-mask cast op.

The cost of convert from or to mask vector is different from other cases. We could not use PowDiff to calculate it. This patch set it to 3 as we use 3 instruction to make it.

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




More information about the All-commits mailing list