Return an ArrayRef from ShuffleVectorSDNode::getMask and push it through CodeGen.
[oota-llvm.git] / lib / Target / PowerPC / PPCISelLowering.cpp
index c8c4f7389b0d7b06f658a3ff4f3cd989337bae9e..df7dbe02d426a6cdc92d6bd493e90b523a134b5d 100644 (file)
@@ -4258,8 +4258,7 @@ SDValue PPCTargetLowering::LowerVECTOR_SHUFFLE(SDValue Op,
 
   // Check to see if this is a shuffle of 4-byte values.  If so, we can use our
   // perfect shuffle table to emit an optimal matching sequence.
-  SmallVector<int, 16> PermMask;
-  SVOp->getMask(PermMask);
+  ArrayRef<int> PermMask = SVOp->getMask();
 
   unsigned PFIndexes[4];
   bool isFourElementShuffle = true;