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:
8ec3389
)
Fix a warning about comparing signed and unsigned values.
author
Dan Gohman
<gohman@apple.com>
Wed, 10 Sep 2008 01:09:32 +0000
(
01:09
+0000)
committer
Dan Gohman
<gohman@apple.com>
Wed, 10 Sep 2008 01:09:32 +0000
(
01:09
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56040
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index 3ec97dd9d11f362e07c0f79cf7fab3e5bf726ec4..03fdc08c8bd0448e9b3ffa662efafaee7b6297dc 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-1486,7
+1486,7
@@
Value *InstCombiner::SimplifyDemandedVectorElts(Value *V, uint64_t DemandedElts,
bool NewUndefElts = false;
for (unsigned i = 0; i < VWidth; i++) {
unsigned MaskVal = Shuffle->getMaskValue(i);
- if (MaskVal == -1) {
+ if (MaskVal == -1
u
) {
uint64_t NewBit = 1ULL << i;
UndefElts |= NewBit;
} else if (MaskVal < VWidth) {