[all-commits] [llvm/llvm-project] 73482b: [RISCV] Fix cost of legal fixed length masked load...

Philip Reames via All-commits all-commits at lists.llvm.org
Wed Nov 2 07:25:00 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 73482b457e473df6affb124242c6ce9cf290ed5c
      https://github.com/llvm/llvm-project/commit/73482b457e473df6affb124242c6ce9cf290ed5c
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2022-11-02 (Wed, 02 Nov 2022)

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

  Log Message:
  -----------
  [RISCV] Fix cost of legal fixed length masked load and stores

We can cost them the same way as a scalable masked load/store. By hitting the default path, we were costing them as if they were being scalarized. This is a significant over estimate.

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




More information about the All-commits mailing list