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:
parent
6b56c9400f
commit
beafc64188
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user