File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -3660,19 +3660,6 @@ Instruction *InstCombinerImpl::visitOr(BinaryOperator &I) {
3660
3660
}
3661
3661
}
3662
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
3663
if (SwappedForXor)
3677
3664
std::swap (Op0, Op1);
3678
3665
You can’t perform that action at this time.
0 commit comments