[all-commits] [llvm/llvm-project] 8bf624: [RISCV] Key VectorIntrinsicCostTable by SEW [nfc-ish]

Philip Reames via All-commits all-commits at lists.llvm.org
Thu Jan 18 17:11:10 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8bf624af4776cdaad82c0fc4da9e9b0f14e9ea10
      https://github.com/llvm/llvm-project/commit/8bf624af4776cdaad82c0fc4da9e9b0f14e9ea10
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2024-01-18 (Thu, 18 Jan 2024)

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

  Log Message:
  -----------
  [RISCV] Key VectorIntrinsicCostTable by SEW [nfc-ish]

Previously, we'd keyed the table by the vector type, but we were actually assigning the same cost for all the types with a common element type.  Unless we'd missed an entry, this means that effectively we were performing an SEW lookup.

Restructure the table to make this SEW dependence more explicit, and in the process greatly reduce the size of the table.




More information about the All-commits mailing list