mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-31 10:34:17 +00:00
[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
This commit is contained in:
parent
34a3da893c
commit
72cacedbb7
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user