parent
fc365b60dc
commit
6e70830af9
|
@ -2516,12 +2516,10 @@ Instruction *InstCombiner::visitAdd(BinaryOperator &I) {
|
||||||
ComputeMaskedBits(RHS, Mask, RHSKnownZero, RHSKnownOne);
|
ComputeMaskedBits(RHS, Mask, RHSKnownZero, RHSKnownOne);
|
||||||
|
|
||||||
// No bits in common -> bitwise or.
|
// No bits in common -> bitwise or.
|
||||||
if ((LHSKnownZero|RHSKnownZero).isAllOnesValue()) {
|
if ((LHSKnownZero|RHSKnownZero).isAllOnesValue())
|
||||||
cerr << "HACK\n" << *LHS << *RHS << "\n";
|
|
||||||
return BinaryOperator::CreateOr(LHS, RHS);
|
return BinaryOperator::CreateOr(LHS, RHS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// W*X + Y*Z --> W * (X+Z) iff W == Y
|
// W*X + Y*Z --> W * (X+Z) iff W == Y
|
||||||
if (I.getType()->isIntOrIntVector()) {
|
if (I.getType()->isIntOrIntVector()) {
|
||||||
|
|
Loading…
Reference in New Issue