forked from OSchip/llvm-project
Fix signed/unsigned comparison warning.
This commit is contained in:
parent
0cb2f089c1
commit
ee862adf60
|
@ -7520,7 +7520,7 @@ static bool getFauxShuffleMask(SDValue N, const APInt &DemandedElts,
|
||||||
Offset = (X86ISD::VROTLI == Opcode ? NumBytesPerElt - Offset : Offset);
|
Offset = (X86ISD::VROTLI == Opcode ? NumBytesPerElt - Offset : Offset);
|
||||||
for (int i = 0; i != (int)NumElts; ++i) {
|
for (int i = 0; i != (int)NumElts; ++i) {
|
||||||
int BaseIdx = i * NumBytesPerElt;
|
int BaseIdx = i * NumBytesPerElt;
|
||||||
for (int j = 0; j != NumBytesPerElt; ++j) {
|
for (int j = 0; j != (int)NumBytesPerElt; ++j) {
|
||||||
Mask.push_back(BaseIdx + ((Offset + j) % NumBytesPerElt));
|
Mask.push_back(BaseIdx + ((Offset + j) % NumBytesPerElt));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue