We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5399e8 commit 074f7c2Copy full SHA for 074f7c2
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -3660,19 +3660,6 @@ Instruction *InstCombinerImpl::visitOr(BinaryOperator &I) {
3660
}
3661
3662
3663
- // A | ~(A | B) -> A | ~B
3664
- // A | ~(A ^ B) -> A | ~B
3665
- if (match(Op1, m_Not(m_Value(A))))
3666
- if (BinaryOperator *B = dyn_cast<BinaryOperator>(A))
3667
- if ((Op0 == B->getOperand(0) || Op0 == B->getOperand(1)) &&
3668
- Op1->hasOneUse() && (B->getOpcode() == Instruction::Or ||
3669
- B->getOpcode() == Instruction::Xor)) {
3670
- Value *NotOp = Op0 == B->getOperand(0) ? B->getOperand(1) :
3671
- B->getOperand(0);
3672
- Value *Not = Builder.CreateNot(NotOp, NotOp->getName() + ".not");
3673
- return BinaryOperator::CreateOr(Not, Op0);
3674
- }
3675
-
3676
if (SwappedForXor)
3677
std::swap(Op0, Op1);
3678
0 commit comments