diff options
author | Sam Tebbs <sam.tebbs@arm.com> | 2019-08-19 09:38:28 +0000 |
---|---|---|
committer | Sam Tebbs <sam.tebbs@arm.com> | 2019-08-19 09:38:28 +0000 |
commit | f312c1ecf4bc7003f4b10231a3147d004a39bfae (patch) | |
tree | 6fd814c25a8dfad4c2398c119b68f76c1f369543 /llvm/lib/Target/ARM/ARMTargetTransformInfo.h | |
parent | 2bfc13fde1296a63dba5d5589aac9aa5ae45949e (diff) | |
download | bcm5719-llvm-f312c1ecf4bc7003f4b10231a3147d004a39bfae.tar.gz bcm5719-llvm-f312c1ecf4bc7003f4b10231a3147d004a39bfae.zip |
[ARM] Add support for MVE vaddv
This patch adds vecreduce_add and the relevant instruction selection for
vaddv.
Differential revision: https://reviews.llvm.org/D66085
llvm-svn: 369245
Diffstat (limited to 'llvm/lib/Target/ARM/ARMTargetTransformInfo.h')
-rw-r--r-- | llvm/lib/Target/ARM/ARMTargetTransformInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetTransformInfo.h b/llvm/lib/Target/ARM/ARMTargetTransformInfo.h index b966c76c7bf..507e0188549 100644 --- a/llvm/lib/Target/ARM/ARMTargetTransformInfo.h +++ b/llvm/lib/Target/ARM/ARMTargetTransformInfo.h @@ -156,6 +156,13 @@ public: int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp); + bool useReductionIntrinsic(unsigned Opcode, Type *Ty, + TTI::ReductionFlags Flags) const; + + bool shouldExpandReduction(const IntrinsicInst *II) const { + return false; + } + int getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src, const Instruction *I = nullptr); |