[llvm] r229668 - [x86] Remove some more 'bit' nomenclature from the generic shift
Chandler Carruth
chandlerc at gmail.com
Wed Feb 18 03:46:23 PST 2015
Author: chandlerc
Date: Wed Feb 18 05:46:23 2015
New Revision: 229668
URL: http://llvm.org/viewvc/llvm-project?rev=229668&view=rev
Log:
[x86] Remove some more 'bit' nomenclature from the generic shift
lowering.
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=229668&r1=229667&r2=229668&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Feb 18 05:46:23 2015
@@ -7901,7 +7901,7 @@ static SDValue lowerVectorShuffleAsShift
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
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();
More information about the llvm-commits
mailing list