[llvm] r334509 - Fix signed/unsigned warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 12 08:14:34 PDT 2018
Author: rksimon
Date: Tue Jun 12 08:14:34 2018
New Revision: 334509
URL: http://llvm.org/viewvc/llvm-project?rev=334509&view=rev
Log:
Fix signed/unsigned warning. NFCI.
Modified:
llvm/trunk/lib/Analysis/TargetTransformInfo.cpp
Modified: llvm/trunk/lib/Analysis/TargetTransformInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/TargetTransformInfo.cpp?rev=334509&r1=334508&r2=334509&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/TargetTransformInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/TargetTransformInfo.cpp Tue Jun 12 08:14:34 2018
@@ -668,8 +668,8 @@ static bool isIdentityVectorMask(ArrayRe
for (unsigned i = 0; i < MaskSize && (IdentityLHS || IdentityRHS); ++i) {
if (Mask[i] < 0)
continue;
- IdentityLHS &= (Mask[i] == i);
- IdentityRHS &= (Mask[i] == (i + MaskSize));
+ IdentityLHS &= (Mask[i] == (int)i);
+ IdentityRHS &= (Mask[i] == (int)(i + MaskSize));
}
return IdentityLHS || IdentityRHS;
}
More information about the llvm-commits
mailing list