[all-commits] [llvm/llvm-project] 832203: [TTI] Use element alignment in vp.strided.{load, st...

Luke Lau via All-commits all-commits at lists.llvm.org
Mon Aug 5 03:43:18 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 832203545d4e2157ca29f99b18e3360ffa180183
      https://github.com/llvm/llvm-project/commit/832203545d4e2157ca29f99b18e3360ffa180183
  Author: Luke Lau <luke at igalia.com>
  Date:   2024-08-05 (Mon, 05 Aug 2024)

  Changed paths:
    M llvm/include/llvm/CodeGen/BasicTTIImpl.h
    M llvm/test/Analysis/CostModel/RISCV/rvv-intrinsics.ll

  Log Message:
  -----------
  [TTI] Use element alignment in vp.strided.{load,store} cost (#101940)

In SelectionDAGBuilder, a vp.strided.{load,store} uses the datalayout
alignment of the element type if an align attribute isn't specified on
the pointer operand. This updates BasicTTIImpl to use said element
alignment instead of defaulting to one when costing it.

This mainly just fixes the output of the cost model tests on RISC-V,
since as far as I'm aware nothing uses the cost of these, e.g. SLP calls
getStridedMemoryOpCost directly



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list