[llvm] r290257 - [CostModel] Pass shuffle mask args with ArrayRef. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 21 07:49:02 PST 2016
Author: rksimon
Date: Wed Dec 21 09:49:01 2016
New Revision: 290257
URL: http://llvm.org/viewvc/llvm-project?rev=290257&view=rev
Log:
[CostModel] Pass shuffle mask args with ArrayRef. NFCI.
Modified:
llvm/trunk/lib/Analysis/CostModel.cpp
Modified: llvm/trunk/lib/Analysis/CostModel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/CostModel.cpp?rev=290257&r1=290256&r2=290257&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/CostModel.cpp (original)
+++ llvm/trunk/lib/Analysis/CostModel.cpp Wed Dec 21 09:49:01 2016
@@ -90,14 +90,14 @@ CostModelAnalysis::runOnFunction(Functio
return false;
}
-static bool isReverseVectorMask(SmallVectorImpl<int> &Mask) {
+static bool isReverseVectorMask(ArrayRef<int> Mask) {
for (unsigned i = 0, MaskSize = Mask.size(); i < MaskSize; ++i)
if (Mask[i] >= 0 && Mask[i] != (int)(MaskSize - 1 - i))
return false;
return true;
}
-static bool isAlternateVectorMask(SmallVectorImpl<int> &Mask) {
+static bool isAlternateVectorMask(ArrayRef<int> Mask) {
bool isAlternate = true;
unsigned MaskSize = Mask.size();
More information about the llvm-commits
mailing list