diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-01-07 03:20:02 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-01-07 03:20:02 +0000 |
commit | 2109f47d97e86f705143fc67247d05f48ef138de (patch) | |
tree | 1a4e396761c38976b357732926c2407250817eb7 /llvm/lib | |
parent | 50a36cd148f920699e47be35f057a0e0d862b611 (diff) | |
download | bcm5719-llvm-2109f47d97e86f705143fc67247d05f48ef138de.tar.gz bcm5719-llvm-2109f47d97e86f705143fc67247d05f48ef138de.zip |
Fix the enumerator names for ShuffleKind to match tho coding standards,
and make its comments doxygen comments.
llvm-svn: 171688
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/X86/X86TargetTransformInfo.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp index 8a699afa6a4..9cc1b180e97 100644 --- a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp +++ b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp @@ -204,7 +204,7 @@ unsigned X86TTI::getArithmeticInstrCost(unsigned Opcode, Type *Ty) const { unsigned X86TTI::getShuffleCost(ShuffleKind Kind, Type *Tp, int Index, Type *SubTp) const { // We only estimate the cost of reverse shuffles. - if (Kind != Reverse) + if (Kind != SK_Reverse) return TargetTransformInfo::getShuffleCost(Kind, Tp, Index, SubTp); std::pair<unsigned, MVT> LT = TLI->getTypeLegalizationCost(Tp); diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 6a26bef89c0..17d9eb1d7c9 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -2437,7 +2437,7 @@ LoopVectorizationCostModel::getInstructionCost(Instruction *I, unsigned VF) { SI->getAlignment(), SI->getPointerAddressSpace()); if (Reverse) - Cost += TTI->getShuffleCost(TargetTransformInfo::Reverse, + Cost += TTI->getShuffleCost(TargetTransformInfo::SK_Reverse, VectorTy, 0); return Cost; } @@ -2479,7 +2479,7 @@ LoopVectorizationCostModel::getInstructionCost(Instruction *I, unsigned VF) { LI->getAlignment(), LI->getPointerAddressSpace()); if (Reverse) - Cost += TTI->getShuffleCost(TargetTransformInfo::Reverse, + Cost += TTI->getShuffleCost(TargetTransformInfo::SK_Reverse, VectorTy, 0); return Cost; } |