[llvm] r272459 - Compare to an unsigned literal to avoid a -Wsign-compare warning.
Chandler Carruth via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 11 01:02:01 PDT 2016
Author: chandlerc
Date: Sat Jun 11 03:02:01 2016
New Revision: 272459
URL: http://llvm.org/viewvc/llvm-project?rev=272459&view=rev
Log:
Compare to an unsigned literal to avoid a -Wsign-compare warning.
Modified:
llvm/trunk/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
Modified: llvm/trunk/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp?rev=272459&r1=272458&r2=272459&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp Sat Jun 11 03:02:01 2016
@@ -207,7 +207,7 @@ void DecodeVPERMIL2PMask(const Constant
// 10b 1 Zero.
// 11b 0 Zero.
// 11b 1 Source selected by Selector index.
- if ((M2Z & 0x2) != 0 && MatchBit != (M2Z & 0x1)) {
+ if ((M2Z & 0x2) != 0u && MatchBit != (M2Z & 0x1)) {
ShuffleMask.push_back(SM_SentinelZero);
continue;
}
More information about the llvm-commits
mailing list