summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-05-03 07:26:59 +0000
committerCraig Topper <craig.topper@gmail.com>2012-05-03 07:26:59 +0000
commit242183834ac0893eca1e80f6b9411b8772a6817b (patch)
treef8dce0962a6a0533d9c4620ff97e73268bdda075 /llvm/lib/Target/X86
parent315a5cc7898299c97ce089ffd3dfeb4ef8816741 (diff)
downloadbcm5719-llvm-242183834ac0893eca1e80f6b9411b8772a6817b.tar.gz
bcm5719-llvm-242183834ac0893eca1e80f6b9411b8772a6817b.zip
Use 'unsigned' instead of 'int' in a few places dealing with counts of vector elements.
llvm-svn: 156060
Diffstat (limited to 'llvm/lib/Target/X86')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index cacdb522bff..60904d09795 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud