mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Use 'unsigned' instead of 'int' in a few places dealing with counts of vector elements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156060 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3176,8 +3176,8 @@ static bool isUndefOrEqual(int Val, int CmpVal) {
|
|||||||
/// from position Pos and ending in Pos+Size, falls within the specified
|
/// from position Pos and ending in Pos+Size, falls within the specified
|
||||||
/// sequential range (L, L+Pos]. or is undef.
|
/// sequential range (L, L+Pos]. or is undef.
|
||||||
static bool isSequentialOrUndefInRange(ArrayRef<int> Mask,
|
static bool isSequentialOrUndefInRange(ArrayRef<int> Mask,
|
||||||
int Pos, int Size, int Low) {
|
unsigned Pos, unsigned Size, int Low) {
|
||||||
for (int i = Pos, e = Pos+Size; i != e; ++i, ++Low)
|
for (unsigned i = Pos, e = Pos+Size; i != e; ++i, ++Low)
|
||||||
if (!isUndefOrEqual(Mask[i], Low))
|
if (!isUndefOrEqual(Mask[i], Low))
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
@@ -10670,7 +10670,7 @@ SDValue X86TargetLowering::LowerSIGN_EXTEND_INREG(SDValue Op,
|
|||||||
EVT NewVT = MVT::getVectorVT(EltVT, NumElems/2);
|
EVT NewVT = MVT::getVectorVT(EltVT, NumElems/2);
|
||||||
|
|
||||||
EVT ExtraEltVT = ExtraVT.getVectorElementType();
|
EVT ExtraEltVT = ExtraVT.getVectorElementType();
|
||||||
int ExtraNumElems = ExtraVT.getVectorNumElements();
|
unsigned ExtraNumElems = ExtraVT.getVectorNumElements();
|
||||||
ExtraVT = EVT::getVectorVT(*DAG.getContext(), ExtraEltVT,
|
ExtraVT = EVT::getVectorVT(*DAG.getContext(), ExtraEltVT,
|
||||||
ExtraNumElems/2);
|
ExtraNumElems/2);
|
||||||
SDValue Extra = DAG.getValueType(ExtraVT);
|
SDValue Extra = DAG.getValueType(ExtraVT);
|
||||||
|
Reference in New Issue
Block a user