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 | daf7b5c8f2889ddb923544565f07518d504aa574 (patch) | |
tree | 90a68a445b4fc9804160e769d7f61c00cbfc5cc7 /lib/Target/TargetTransformImpl.cpp | |
parent | 3a19999413b18304d1a00cbdbe73fc43ea9cb75f (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171022 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetTransformImpl.cpp')
-rw-r--r-- | lib/Target/TargetTransformImpl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/TargetTransformImpl.cpp b/lib/Target/TargetTransformImpl.cpp index 3d640dc023..a320e16c98 100644 --- a/lib/Target/TargetTransformImpl.cpp +++ b/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; } |