]> granicus.if.org Git - llvm/commitdiff
[CodeGen] Make ShuffleVectorSDNode::commuteMask take a MutableArrayRef instead of...
authorCraig Topper <craig.topper@gmail.com>
Wed, 29 Jun 2016 03:29:06 +0000 (03:29 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 29 Jun 2016 03:29:06 +0000 (03:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274095 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index d316cddef89da0fc10b782ceaf518825a1902f97..ef52c751163c5b47850ca333726aca8376ea6a71 100644 (file)
@@ -1255,7 +1255,7 @@ public:
 
   /// Change values in a shuffle permute mask assuming
   /// the two vector operands have swapped position.
-  static void commuteMask(SmallVectorImpl<int> &Mask) {
+  static void commuteMask(MutableArrayRef<int> Mask) {
     unsigned NumElems = Mask.size();
     for (unsigned i = 0; i != NumElems; ++i) {
       int idx = Mask[i];
index 3073e22b9d63e2bd541890d6ef954cdc6b01c109..f4a4207712dafe862e080b463b63e327b7c2c6fd 100644 (file)
@@ -1478,7 +1478,7 @@ SDValue SelectionDAG::getCondCode(ISD::CondCode Cond) {
 // commuteShuffle - swaps the values of N1 and N2, and swaps all indices in
 // the shuffle mask M that point at N1 to point at N2, and indices that point
 // N2 to point at N1.
-static void commuteShuffle(SDValue &N1, SDValue &N2, SmallVectorImpl<int> &M) {
+static void commuteShuffle(SDValue &N1, SDValue &N2, MutableArrayRef<int> M) {
   std::swap(N1, N2);
   ShuffleVectorSDNode::commuteMask(M);
 }