]> granicus.if.org Git - llvm/commitdiff
Remove dead and unused variable NumSentinelElements.
authorEric Christopher <echristo@gmail.com>
Wed, 4 Jan 2017 20:05:18 +0000 (20:05 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 4 Jan 2017 20:05:18 +0000 (20:05 +0000)
Fixes PR31529.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290998 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 0c1f9e6cffae5851f4996bc3c954e22f49394cb0..fd2189397279eca6ad34c59497ad91fd717429b7 100644 (file)
@@ -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