forked from OSchip/llvm-project
parent
1521298993
commit
027eaf01cf
|
@ -1941,7 +1941,6 @@ Instruction *InstCombiner::visitOr(BinaryOperator &I) {
|
||||||
ConstantExpr::getAnd(C3, C2)->isNullValue() &&
|
ConstantExpr::getAnd(C3, C2)->isNullValue() &&
|
||||||
(C2->getRawValue() & (C2->getRawValue()+1)) == 0) {
|
(C2->getRawValue() & (C2->getRawValue()+1)) == 0) {
|
||||||
// Return V+C3.
|
// Return V+C3.
|
||||||
std::cerr << "Simpl: " << *A << "Simpl2: " << *B << "Simpl3: " << I;
|
|
||||||
return ReplaceInstUsesWith(I, V == A ? B : A);
|
return ReplaceInstUsesWith(I, V == A ? B : A);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue