[all-commits] [llvm/llvm-project] 9c6eca: [AArch64] Return an invalid cost for vscale x 2 x ...

David Green via All-commits all-commits at lists.llvm.org
Sat Mar 29 12:25:40 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c6eca28cbd4689173bc8b0733ffe39363481103
      https://github.com/llvm/llvm-project/commit/9c6eca28cbd4689173bc8b0733ffe39363481103
  Author: David Green <david.green at arm.com>
  Date:   2025-03-29 (Sat, 29 Mar 2025)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/AArch64/sve-rem.ll

  Log Message:
  -----------
  [AArch64] Return an invalid cost for vscale x 2 x i128 srem.

This protects against invalid size requests on scalable vectors by checking the
original VT, not the legalized type when checking for scalars. The cost
returned is now invalid, which lines up with the codegen not being able to
produce a result.



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