[x86] Remove some more 'bit' nomenclature from the generic shift
authorChandler Carruth <chandlerc@gmail.com>
Wed, 18 Feb 2015 11:46:23 +0000 (11:46 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 18 Feb 2015 11:46:23 +0000 (11:46 +0000)
lowering.

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

lib/Target/X86/X86ISelLowering.cpp

index 3eabba65f5ecde1633532c30bf274f469ebf0ab7..f9d305cc6e9e7935e8c90af61ef007bb267926c3 100644 (file)
@@ -7901,7 +7901,7 @@ static SDValue lowerVectorShuffleAsShift(SDLoc DL, MVT VT, SDValue V1,
     return true;
   };
 
-  auto MatchBitShift = [&](int Shift, int Scale, bool Left, SDValue V) {
+  auto MatchShift = [&](int Shift, int Scale, bool Left, SDValue V) {
     for (int i = 0; i != Size; i += Scale) {
       unsigned Pos = Left ? i + Shift : i;
       unsigned Low = Left ? i : i + Shift;
@@ -7943,8 +7943,8 @@ static SDValue lowerVectorShuffleAsShift(SDLoc DL, MVT VT, SDValue V1,
       for (bool Left : {true, false})
         if (CheckZeros(Shift, Scale, Left))
           for (SDValue V : {V1, V2})
-            if (SDValue BitShift = MatchBitShift(Shift, Scale, Left, V))
-              return BitShift;
+            if (SDValue Match = MatchShift(Shift, Scale, Left, V))
+              return Match;
 
   // no match
   return SDValue();