diff options
| author | Craig Topper <craig.topper@gmail.com> | 2012-05-03 07:26:59 +0000 | 
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2012-05-03 07:26:59 +0000 | 
| commit | b607264550b6d992cb299b0a9c832a6ed49d483c (patch) | |
| tree | 67cc75a8cedfcfdaa981b1f4b2f658ca02aa69ce | |
| parent | 6b28d356c56d656e8e4d23c71de80162bb2eba5e (diff) | |
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
| -rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index cacdb522bf..60904d0979 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -3176,8 +3176,8 @@ static bool isUndefOrEqual(int Val, int CmpVal) {  /// from position Pos and ending in Pos+Size, falls within the specified  /// sequential range (L, L+Pos]. or is undef.  static bool isSequentialOrUndefInRange(ArrayRef<int> Mask, -                                       int Pos, int Size, int Low) { -  for (int i = Pos, e = Pos+Size; i != e; ++i, ++Low) +                                       unsigned Pos, unsigned Size, int Low) { +  for (unsigned i = Pos, e = Pos+Size; i != e; ++i, ++Low)      if (!isUndefOrEqual(Mask[i], Low))        return false;    return true; @@ -10670,7 +10670,7 @@ SDValue X86TargetLowering::LowerSIGN_EXTEND_INREG(SDValue Op,          EVT NewVT = MVT::getVectorVT(EltVT, NumElems/2);          EVT ExtraEltVT = ExtraVT.getVectorElementType(); -        int ExtraNumElems = ExtraVT.getVectorNumElements(); +        unsigned ExtraNumElems = ExtraVT.getVectorNumElements();          ExtraVT = EVT::getVectorVT(*DAG.getContext(), ExtraEltVT,                                     ExtraNumElems/2);          SDValue Extra = DAG.getValueType(ExtraVT); | 
