[llvm] r358886 - [DAGCombiner] make variable name less ambiguous; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 22 06:42:50 PDT 2019
Author: spatel
Date: Mon Apr 22 06:42:50 2019
New Revision: 358886
URL: http://llvm.org/viewvc/llvm-project?rev=358886&view=rev
Log:
[DAGCombiner] make variable name less ambiguous; NFC
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=358886&r1=358885&r2=358886&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Mon Apr 22 06:42:50 2019
@@ -17944,9 +17944,9 @@ static SDValue combineShuffleOfSplatVal(
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(
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),
More information about the llvm-commits
mailing list