[all-commits] [llvm/llvm-project] 1d8b51: [TTI] Don't drop VP intrinsic args when delegating...

Luke Lau via All-commits all-commits at lists.llvm.org
Thu Jul 10 04:42:11 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d8b51667ab3b8be039d616341470613325971f3
      https://github.com/llvm/llvm-project/commit/1d8b51667ab3b8be039d616341470613325971f3
  Author: Luke Lau <luke at igalia.com>
  Date:   2025-07-10 (Thu, 10 Jul 2025)

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

  Log Message:
  -----------
  [TTI] Don't drop VP intrinsic args when delegating to non-vp equivalent (#147677)

Previously we only carried the type arguments which caused value-based
costs to be inadvertantly changed into type-based costs.

I'm just using vp.is.fpclass as an example intrinsic for now since the
type based cost seems to differ from the value based cost, and most
normal intrinsics e.g. min/max have the same value + type based cost.

We still need to handle the cost properly for is.fpclass in a second
patch.

This is needed for an upcoming patch to handle the cost of
llvm.experimental.vp.reverse which suffers from the same problem.



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