1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

[CostModel] Pass shuffle mask args with ArrayRef. NFCI.

llvm-svn: 290257
This commit is contained in:
Simon Pilgrim 2016-12-21 15:49:01 +00:00
parent 6b56c9400f
commit beafc64188

View File

@ -90,14 +90,14 @@ CostModelAnalysis::runOnFunction(Function &F) {
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();