projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b210e6f
)
Silence a GCC warning about comparing signed and unsigned types.
author
Duncan Sands
<baldrick@free.fr>
Mon, 29 Oct 2012 11:29:53 +0000
(11:29 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Mon, 29 Oct 2012 11:29:53 +0000
(11:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166922
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86ISelLowering.cpp
b/lib/Target/X86/X86ISelLowering.cpp
index 1ab1bcb20f744b01a152a72ceffd7cd21e2fb9a9..06b83297fea121077ee87652ad3650ae2fe25d61 100644
(file)
--- a/
lib/Target/X86/X86ISelLowering.cpp
+++ b/
lib/Target/X86/X86ISelLowering.cpp
@@
-6598,8
+6598,8
@@
X86TargetLowering::lowerVectorIntExtend(SDValue Op, SelectionDAG &DAG) const {
// 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 ((1
U
<< Shift) < NumElems) {
+ if (SVOp->getMaskElt(1
U
<< Shift) == 1)
break;
Shift += 1;
// The maximal ratio is 8, i.e. from i8 to i64.