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:
920c37a
)
Fix the build for gcc-4.2.
author
Duncan Sands
<baldrick@free.fr>
Fri, 21 Mar 2008 08:32:17 +0000
(08:32 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Fri, 21 Mar 2008 08:32:17 +0000
(08:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48639
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 1b7578904d5430f8dcee70d54246940f7ed8e951..083dd520b4a995249fd87d3c233fc1ee7cc4bc06 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-833,7
+833,7
@@
static void ComputeMaskedBits(Value *V, const APInt &Mask, APInt& KnownZero,
return;
}
break;
- case Instruction::Add:
+ case Instruction::Add:
{
// If either the LHS or the RHS are Zero, the result is zero.
ComputeMaskedBits(I->getOperand(1), Mask, KnownZero, KnownOne, Depth+1);
ComputeMaskedBits(I->getOperand(0), Mask, KnownZero2, KnownOne2, Depth+1);
@@
-849,6
+849,7
@@
static void ComputeMaskedBits(Value *V, const APInt &Mask, APInt& KnownZero,
KnownZero = APInt::getLowBitsSet(BitWidth, KnownZeroOut);
KnownOne = APInt(BitWidth, 0);
return;
+ }
case Instruction::Sub: {
ConstantInt *CLHS = dyn_cast<ConstantInt>(I->getOperand(0));
if (!CLHS) break;