From beafc64188d17d8eab8ac8e7b6d1cdc2013e1248 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 21 Dec 2016 15:49:01 +0000 Subject: [PATCH] [CostModel] Pass shuffle mask args with ArrayRef. NFCI. llvm-svn: 290257 --- lib/Analysis/CostModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Analysis/CostModel.cpp b/lib/Analysis/CostModel.cpp index 70b3560808c..870c446b24a 100644 --- a/lib/Analysis/CostModel.cpp +++ b/lib/Analysis/CostModel.cpp @@ -90,14 +90,14 @@ CostModelAnalysis::runOnFunction(Function &F) { return false; } -static bool isReverseVectorMask(SmallVectorImpl &Mask) { +static bool isReverseVectorMask(ArrayRef 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 &Mask) { +static bool isAlternateVectorMask(ArrayRef Mask) { bool isAlternate = true; unsigned MaskSize = Mask.size();