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:
a83a108
)
Fix warning.
author
Dale Johannesen
<dalej@apple.com>
Mon, 12 Oct 2009 18:45:32 +0000
(18:45 +0000)
committer
Dale Johannesen
<dalej@apple.com>
Mon, 12 Oct 2009 18:45:32 +0000
(18:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83870
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 3b6f5d4e75cca07d2125139738a7d61cdd03cb6f..b67bc050bd7d70c239bfbc794c9c3327d9e0c7ca 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-2824,7
+2824,7
@@
Instruction *InstCombiner::visitMul(BinaryOperator &I) {
// X * Y (where Y is 0 or 1) -> X & (0-Y)
if (!isa<VectorType>(I.getType())) {
// -2 is "-1 << 1" so it is all bits set except the low one.
- APInt Negative2(I.getType()->getPrimitiveSizeInBits(), -2, true);
+ APInt Negative2(I.getType()->getPrimitiveSizeInBits(),
(uint64_t)
-2, true);
Value *BoolCast = 0, *OtherOp = 0;
if (MaskedValueIsZero(Op0, Negative2))