[PATCH] D116732: [AArch64] Add basic umulo and smulo costs

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 6 02:47:36 PST 2022


dmgreen created this revision.
dmgreen added reviewers: fhahn, sdesmalen, david-arm, efriedma, t.p.northover.
Herald added subscribers: hiraditya, kristof.beyls.
dmgreen requested review of this revision.
Herald added a project: LLVM.

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 https://github.com/llvm/llvm-project/blob/main/llvm/test/CodeGen/AArch64/arm64-xaluo.ll.


https://reviews.llvm.org/D116732

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116732.397826.patch
Type: text/x-patch
Size: 15200 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220106/a05fae02/attachment.bin>


More information about the llvm-commits mailing list