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