]> granicus.if.org Git - llvm/commitdiff
[DAGCombiner] make variable name less ambiguous; NFC
authorSanjay Patel <spatel@rotateright.com>
Mon, 22 Apr 2019 13:42:50 +0000 (13:42 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 22 Apr 2019 13:42:50 +0000 (13:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358886 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index d5c2488a8c74e9fd50677a509339c20f6c9d1e69..4448b6b06d3fc3c01e1d262462ea89d0a784f4aa 100644 (file)
@@ -17944,9 +17944,9 @@ static SDValue combineShuffleOfSplatVal(ShuffleVectorSDNode *Shuf,
   if (!Splat || !Splat->isSplat())
     return SDValue();
 
-  ArrayRef<int> Mask = Shuf->getMask();
+  ArrayRef<int> ShufMask = Shuf->getMask();
   ArrayRef<int> SplatMask = Splat->getMask();
-  assert(Mask.size() == SplatMask.size() && "Mask length mismatch");
+  assert(ShufMask.size() == SplatMask.size() && "Mask length mismatch");
 
   // Prefer simplifying to the splat-shuffle, if possible. This is legal if
   // every undef mask element in the splat-shuffle has a corresponding undef
@@ -17972,13 +17972,13 @@ static SDValue combineShuffleOfSplatVal(ShuffleVectorSDNode *Shuf,
         return false;
     return true;
   };
-  if (CanSimplifyToExistingSplat(Mask, SplatMask))
+  if (CanSimplifyToExistingSplat(ShufMask, SplatMask))
     return Shuf->getOperand(0);
 
   // Create a new shuffle with a mask that is composed of the two shuffles'
   // masks.
   SmallVector<int, 32> NewMask;
-  for (int Idx : Mask)
+  for (int Idx : ShufMask)
     NewMask.push_back(Idx == -1 ? -1 : SplatMask[Idx]);
 
   return DAG.getVectorShuffle(Splat->getValueType(0), SDLoc(Splat),