diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-12-24 08:57:47 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-12-24 08:57:47 +0000 |
commit | 7e1599e100e2d5ee56ee38c3ace692a0e05f39d1 (patch) | |
tree | 035de6258aac69fc11975db649bdfe9a81ee5240 /llvm/lib/Target/TargetTransformImpl.cpp | |
parent | 098842b401a1bc1103980de182899563e63f518e (diff) | |
download | bcm5719-llvm-7e1599e100e2d5ee56ee38c3ace692a0e05f39d1.tar.gz bcm5719-llvm-7e1599e100e2d5ee56ee38c3ace692a0e05f39d1.zip |
Change the codegen Cost Model API for shuffeles. This patch removes the API for broadcast and adds a more general API that accepts an enum of known shuffles.
llvm-svn: 171022
Diffstat (limited to 'llvm/lib/Target/TargetTransformImpl.cpp')
-rw-r--r-- | llvm/lib/Target/TargetTransformImpl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetTransformImpl.cpp b/llvm/lib/Target/TargetTransformImpl.cpp index 3d640dc0235..a320e16c98f 100644 --- a/llvm/lib/Target/TargetTransformImpl.cpp +++ b/llvm/lib/Target/TargetTransformImpl.cpp @@ -208,7 +208,8 @@ unsigned VectorTargetTransformImpl::getArithmeticInstrCost(unsigned Opcode, return 1; } -unsigned VectorTargetTransformImpl::getBroadcastCost(Type *Tp) const { +unsigned VectorTargetTransformImpl::getShuffleCost(ShuffleKind Kind, + Type *Tp) const { return 1; } |