[PATCH] D116734: [AArch64] Update addo and subo costs

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 6 03:28:16 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.

Similar to D116732 <https://reviews.llvm.org/D116732>, this adds basic sadd_with_overflow, uadd_with_overflow, ssub_with_overflow and usub_with_overflow costs for aarch64, which are usually quite efficiently lowered.


https://reviews.llvm.org/D116734

Files:
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/AArch64/arith-overflow.ll
  llvm/test/Analysis/CostModel/AArch64/arith-ssat.ll
  llvm/test/Analysis/CostModel/AArch64/arith-usat.ll
  llvm/test/Transforms/LoopVectorize/AArch64/intrinsiccost.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116734.397829.patch
Type: text/x-patch
Size: 58352 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220106/1d73f48c/attachment.bin>


More information about the llvm-commits mailing list