[CostModel][AArch64] Improve the cost estimate of CTPOP intrinsic
authorRosie Sumpter <rosie.sumpter@arm.com>
Wed, 9 Jun 2021 09:00:16 +0000 (10:00 +0100)
committerRosie Sumpter <rosie.sumpter@arm.com>
Fri, 11 Jun 2021 10:15:46 +0000 (11:15 +0100)
commitd7c219a506ec9aabe7c5d36c0da55656af487b73
tree731f5a65d89ec5a31b39165c15206687498cd0c8
parentb102e6880ab06654f945284a520f68c099732f44
[CostModel][AArch64] Improve the cost estimate of CTPOP intrinsic

Added a case for CTPOP to AArch64TTIImpl::getIntrinsicInstrCost so that
the cost estimate matches the codegen in
test/CodeGen/AArch64/arm64-vpopcnt.ll

Differential Revision: https://reviews.llvm.org/D103952
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/AArch64/ctpop.ll