From 9bc6c77220fbdd59d3246a0930425f672d5e85a7 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Mon, 22 Apr 2019 13:42:50 +0000 Subject: [DAGCombiner] make variable name less ambiguous; NFC llvm-svn: 358886 --- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp') diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index d5c2488a8c7..4448b6b06d3 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -17944,9 +17944,9 @@ static SDValue combineShuffleOfSplatVal(ShuffleVectorSDNode *Shuf, if (!Splat || !Splat->isSplat()) return SDValue(); - ArrayRef Mask = Shuf->getMask(); + ArrayRef ShufMask = Shuf->getMask(); ArrayRef 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 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), -- cgit v1.2.3