Skip to content

Commit bac84cf

Browse files
author
Wael Yehia
committed
clang-formay
1 parent fd9c9ca commit bac84cf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/Target/PowerPC/PPCISelLowering.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2245,12 +2245,12 @@ bool PPC::isSplatShuffleMask(ShuffleVectorSDNode *N, unsigned EltSize) {
22452245
// An UNDEF element is a sequence of UNDEF bits.
22462246
if (N->getMaskElt(i) < 0) {
22472247
for (unsigned j = 1; j != EltSize; ++j)
2248-
if (N->getMaskElt(i+j) >= 0)
2248+
if (N->getMaskElt(i + j) >= 0)
2249+
return false;
2250+
} else
2251+
for (unsigned j = 0; j != EltSize; ++j)
2252+
if (N->getMaskElt(i + j) != N->getMaskElt(j))
22492253
return false;
2250-
}
2251-
else for (unsigned j = 0; j != EltSize; ++j)
2252-
if (N->getMaskElt(i+j) != N->getMaskElt(j))
2253-
return false;
22542254
}
22552255
return true;
22562256
}

0 commit comments

Comments
 (0)