From 72cacedbb77a65f28d144ed1f2cfb473936d5b5f Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Wed, 18 Feb 2015 11:46:23 +0000 Subject: [PATCH] [x86] Remove some more 'bit' nomenclature from the generic shift lowering. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229668 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86ISelLowering.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 3eabba65f5e..f9d305cc6e9 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -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(); -- 2.11.0