[AArch64] Add vector saturating add intrinsic costs
authorDavid Green <david.green@arm.com>
Wed, 27 Jan 2021 10:38:32 +0000 (10:38 +0000)
committerDavid Green <david.green@arm.com>
Wed, 27 Jan 2021 10:38:32 +0000 (10:38 +0000)
commit0175cd00a1af35aa90e49bf008a0d4d4cbc7fb89
treea2efb5ff08776a00da2d86617f8b06ce6e78164b
parent9a75a808c27f2d7a3ef4880be5f3febc97d5dcd2
[AArch64] Add vector saturating add intrinsic costs

This adds sadd.sat, uadd.sat, ssub.sat and usub.sat costs for AArch64,
similar to how they were recently added for ARM.

Differential Revision: https://reviews.llvm.org/D95292
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/AArch64/arith-ssat.ll
llvm/test/Analysis/CostModel/AArch64/arith-usat.ll