[llvm-commits] [llvm] r166922 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Duncan Sands
baldrick at free.fr
Mon Oct 29 04:29:53 PDT 2012
Author: baldrick
Date: Mon Oct 29 06:29:53 2012
New Revision: 166922
URL: http://llvm.org/viewvc/llvm-project?rev=166922&view=rev
Log:
Silence a GCC warning about comparing signed and unsigned types.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=166922&r1=166921&r2=166922&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Mon Oct 29 06:29:53 2012
@@ -6598,8 +6598,8 @@
// Find the expansion ratio, e.g. expanding from i8 to i32 has a ratio of 4.
unsigned Shift = 1; // Start from 2, i.e. 1 << 1.
- while ((1 << Shift) < NumElems) {
- if (SVOp->getMaskElt(1 << Shift) == 1)
+ while ((1U << Shift) < NumElems) {
+ if (SVOp->getMaskElt(1U << Shift) == 1)
break;
Shift += 1;
// The maximal ratio is 8, i.e. from i8 to i64.
More information about the llvm-commits
mailing list