[llvm] r290998 - Remove dead and unused variable NumSentinelElements.

Eric Christopher via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 4 12:05:18 PST 2017


Author: echristo
Date: Wed Jan  4 14:05:18 2017
New Revision: 290998

URL: http://llvm.org/viewvc/llvm-project?rev=290998&view=rev
Log:
Remove dead and unused variable NumSentinelElements.

Fixes PR31529.

Modified:
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=290998&r1=290997&r2=290998&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Jan  4 14:05:18 2017
@@ -13085,10 +13085,10 @@ static SDValue lower1BitVectorShuffle(co
 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




More information about the llvm-commits mailing list