Lines Matching refs:Op0
530 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitSub() local
532 if (Value *V = SimplifySubInst(Op0, Op1, I.hasNoSignedWrap(), in visitSub()
542 BinaryOperator *Res = BinaryOperator::CreateAdd(Op0, V); in visitSub()
549 return BinaryOperator::CreateXor(Op0, Op1); in visitSub()
552 if (match(Op0, m_AllOnes())) in visitSub()
555 if (ConstantInt *C = dyn_cast<ConstantInt>(Op0)) { in visitSub()
595 if (match(Op1, m_Add(m_Specific(Op0), m_Value(Y))) || in visitSub()
596 match(Op1, m_Add(m_Value(Y), m_Specific(Op0)))) in visitSub()
600 if (match(Op0, m_Sub(m_Specific(Op1), m_Value(Y)))) in visitSub()
611 return BinaryOperator::CreateAdd(Op0, in visitSub()
616 if (match(Op1, m_And(m_Value(Y), m_Specific(Op0))) || in visitSub()
617 match(Op1, m_And(m_Specific(Op0), m_Value(Y)))) in visitSub()
618 return BinaryOperator::CreateAnd(Op0, in visitSub()
623 match(Op0, m_Zero())) in visitSub()
627 if (match(Op1, m_Shl(m_Value(X), m_Value(Y))) && match(Op0, m_Zero())) in visitSub()
632 if (match(Op1, m_Mul(m_Specific(Op0), m_ConstantInt(CI)))) { in visitSub()
634 return BinaryOperator::CreateMul(Op0, CP1); in visitSub()
638 if (match(Op1, m_Shl(m_Specific(Op0), m_ConstantInt(CI)))) { in visitSub()
641 return BinaryOperator::CreateMul(Op0, C); in visitSub()
649 return BinaryOperator::CreateAdd(Op0, Builder->CreateMul(A, B)); in visitSub()
656 return BinaryOperator::CreateAdd(Op0, NewMul); in visitSub()
661 if (Value *X = dyn_castFoldableMul(Op0, C1)) { in visitSub()
674 if (match(Op0, m_PtrToInt(m_Value(LHSOp))) && in visitSub()
680 if (match(Op0, m_Trunc(m_PtrToInt(m_Value(LHSOp)))) && in visitSub()
690 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitFSub() local
694 return BinaryOperator::CreateFAdd(Op0, V); in visitFSub()