Lines Matching refs:BO
79 BinaryOperator *BO; in foldSelectBinOpIdentity() local
80 if (!match(Sel.getOperand(IsEq ? 1 : 2), m_BinOp(BO))) in foldSelectBinOpIdentity()
85 Type *Ty = BO->getType(); in foldSelectBinOpIdentity()
86 Constant *IdC = ConstantExpr::getBinOpIdentity(BO->getOpcode(), Ty, true); in foldSelectBinOpIdentity()
96 if (!BO->isCommutative() && !match(BO, m_BinOp(m_Value(Y), m_Specific(X)))) in foldSelectBinOpIdentity()
98 if (!match(BO, m_c_BinOp(m_Value(Y), m_Specific(X)))) in foldSelectBinOpIdentity()
103 if (isa<FPMathOperator>(BO)) in foldSelectBinOpIdentity()
104 if (!BO->hasNoSignedZeros() && !CannotBeNegativeZero(Y, &TLI)) in foldSelectBinOpIdentity()
387 if (auto *BO = dyn_cast<BinaryOperator>(TI)) { in foldSelectOpOp() local
388 BinaryOperator *NewBO = BinaryOperator::Create(BO->getOpcode(), Op0, Op1); in foldSelectOpOp()
438 BinaryOperator *BO = BinaryOperator::Create(TVI->getOpcode(), in foldSelectIntoOp() local
440 BO->copyIRFlags(TVI); in foldSelectIntoOp()
441 return BO; in foldSelectIntoOp()
469 BinaryOperator *BO = BinaryOperator::Create(FVI->getOpcode(), in foldSelectIntoOp() local
471 BO->copyIRFlags(FVI); in foldSelectIntoOp()
472 return BO; in foldSelectIntoOp()
1950 auto canMergeSelectThroughBinop = [](BinaryOperator *BO) { in visitSelectInst() argument
1952 switch (BO->getOpcode()) { in visitSelectInst()