mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
Tidy up. No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155832 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ddc693bd22
commit
238ae31aa3
@ -3420,11 +3420,11 @@ static bool isMOVLPMask(ArrayRef<int> Mask, EVT VT) {
|
||||
if (NumElems != 2 && NumElems != 4)
|
||||
return false;
|
||||
|
||||
for (unsigned i = 0; i != NumElems/2; ++i)
|
||||
for (unsigned i = 0, e = NumElems/2; i != e; ++i)
|
||||
if (!isUndefOrEqual(Mask[i], i + NumElems))
|
||||
return false;
|
||||
|
||||
for (unsigned i = NumElems/2; i != NumElems; ++i)
|
||||
for (unsigned i = NumElems/2, e = NumElems; i != e; ++i)
|
||||
if (!isUndefOrEqual(Mask[i], i))
|
||||
return false;
|
||||
|
||||
@ -3440,12 +3440,12 @@ static bool isMOVLHPSMask(ArrayRef<int> Mask, EVT VT) {
|
||||
|| VT.getSizeInBits() > 128)
|
||||
return false;
|
||||
|
||||
for (unsigned i = 0; i != NumElems/2; ++i)
|
||||
for (unsigned i = 0, e = NumElems/2; i != e; ++i)
|
||||
if (!isUndefOrEqual(Mask[i], i))
|
||||
return false;
|
||||
|
||||
for (unsigned i = 0; i != NumElems/2; ++i)
|
||||
if (!isUndefOrEqual(Mask[i + NumElems/2], i + NumElems))
|
||||
for (unsigned i = 0, e = NumElems/2; i != e; ++i)
|
||||
if (!isUndefOrEqual(Mask[i + e], i + NumElems))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
@ -4109,7 +4109,7 @@ static bool ShouldXformToMOVLP(SDNode *V1, SDNode *V2,
|
||||
for (unsigned i = 0, e = NumElems/2; i != e; ++i)
|
||||
if (!isUndefOrEqual(Mask[i], i))
|
||||
return false;
|
||||
for (unsigned i = NumElems/2; i != NumElems; ++i)
|
||||
for (unsigned i = NumElems/2, e = NumElems; i != e; ++i)
|
||||
if (!isUndefOrEqual(Mask[i], i+NumElems))
|
||||
return false;
|
||||
return true;
|
||||
@ -4257,9 +4257,8 @@ static SDValue getUnpackl(SelectionDAG &DAG, DebugLoc dl, EVT VT, SDValue V1,
|
||||
static SDValue getUnpackh(SelectionDAG &DAG, DebugLoc dl, EVT VT, SDValue V1,
|
||||
SDValue V2) {
|
||||
unsigned NumElems = VT.getVectorNumElements();
|
||||
unsigned Half = NumElems/2;
|
||||
SmallVector<int, 8> Mask;
|
||||
for (unsigned i = 0; i != Half; ++i) {
|
||||
for (unsigned i = 0, Half = NumElems/2; i != Half; ++i) {
|
||||
Mask.push_back(i + Half);
|
||||
Mask.push_back(i + NumElems + Half);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user