[all-commits] [llvm/llvm-project] c65270: [AArch64] Add basic umulo and smulo costs

David Green via All-commits all-commits at lists.llvm.org
Thu Jan 6 09:22:59 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c65270cf96b7c19141f33e9d16eb7adf989b638f
      https://github.com/llvm/llvm-project/commit/c65270cf96b7c19141f33e9d16eb7adf989b638f
  Author: David Green <david.green at arm.com>
  Date:   2022-01-06 (Thu, 06 Jan 2022)

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

  Log Message:
  -----------
  [AArch64] Add basic umulo and smulo costs

This adds some AArch64 specific smul_with_overflow and umul_with_overflow
costs, overriding the default costs. The code generation for these mul
with overflow intrinsics is usually better than the default expansion on
AArch64. The costs come from https://godbolt.org/z/zEzYhMWqo with various
types, or llvm/test/CodeGen/AArch64/arm64-xaluo.ll.

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




More information about the All-commits mailing list