summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2017-01-04 20:05:18 +0000
committerEric Christopher <echristo@gmail.com>2017-01-04 20:05:18 +0000
commit568c113ac0c53a480ca71acbefebcc92973d92d0 (patch)
treed3b640039993f401a66ab90c0e3ebad9814b5834
parent1b99a9e1264953936696997cc648bb91c2732838 (diff)
downloadbcm5719-llvm-568c113ac0c53a480ca71acbefebcc92973d92d0.tar.gz
bcm5719-llvm-568c113ac0c53a480ca71acbefebcc92973d92d0.zip
Remove dead and unused variable NumSentinelElements.
Fixes PR31529. llvm-svn: 290998
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 0c1f9e6cffa..fd218939727 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -13085,10 +13085,10 @@ static SDValue lower1BitVectorShuffle(const SDLoc &DL, ArrayRef<int> Mask,
static bool canonicalizeShuffleMaskWithCommute(ArrayRef<int> Mask) {
int NumElements = Mask.size();
- int NumV1Elements = 0, NumV2Elements = 0, NumSentinelElements = 0;
+ int NumV1Elements = 0, NumV2Elements = 0;
for (int M : Mask)
if (M < 0)
- ++NumSentinelElements;
+ continue;
else if (M < NumElements)
++NumV1Elements;
else
OpenPOWER on IntegriCloud