Home | History | Annotate | Download | only in Scalar

Lines Matching defs:BO

489       if (BinaryOperator *BO = isReassociableOp(Op, Opcode)) {
492 Worklist.push_back(std::make_pair(BO, Weight));
528 if (BinaryOperator *BO = isReassociableOp(Op, Opcode)) {
530 Worklist.push_back(std::make_pair(BO, It->second));
559 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Op))
560 if ((Opcode == Instruction::Mul && BinaryOperator::isNeg(BO)) ||
561 (Opcode == Instruction::FMul && BinaryOperator::isFNeg(BO))) {
563 BO = LowerNegateToMultiply(BO);
564 DEBUG(dbgs() << *BO << '\n');
565 Worklist.push_back(std::make_pair(BO, Weight));
676 BinaryOperator *BO = isReassociableOp(OldLHS, Opcode);
677 if (BO && !NotRewritable.count(BO))
678 NodesToRewrite.push_back(BO);
682 BinaryOperator *BO = isReassociableOp(OldRHS, Opcode);
683 if (BO && !NotRewritable.count(BO))
684 NodesToRewrite.push_back(BO);
707 BinaryOperator *BO = isReassociableOp(Op->getOperand(1), Opcode);
708 if (BO && !NotRewritable.count(BO))
709 NodesToRewrite.push_back(BO);
721 BinaryOperator *BO = isReassociableOp(Op->getOperand(0), Opcode);
722 if (BO && !NotRewritable.count(BO)) {
723 Op = BO;
996 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul, Instruction::FMul);
997 if (!BO)
1001 MadeChange |= LinearizeExprTree(BO, Tree);
1043 RewriteExprTree(BO, Factors);
1047 BasicBlock::iterator InsertPt = ++BO->getIterator();
1052 RedoInsts.insert(BO);
1055 RewriteExprTree(BO, Factors);
1056 V = BO;
1060 V = CreateNeg(V, "neg", &*InsertPt, BO);
1072 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul, Instruction::FMul);
1073 if (!BO) {
1079 FindSingleUseMultiplyFactors(BO->getOperand(1), Factors, Ops);
1080 FindSingleUseMultiplyFactors(BO->getOperand(0), Factors, Ops);
2065 BinaryOperator *BO = cast<BinaryOperator>(I);
2069 unsigned Opcode = BO->getOpcode();
2070 if (BO->hasOneUse() && BO->user_back()->getOpcode() == Opcode) {
2074 if (BO->user_back() != BO &&
2075 BO->getParent() == BO->user_back()->getParent())
2076 RedoInsts.insert(BO->user_back());
2082 if (BO->hasOneUse() && BO->getOpcode() == Instruction::Add &&
2083 cast<Instruction>(BO->user_back())->getOpcode() == Instruction::Sub)
2085 if (BO->hasOneUse() && BO->getOpcode() == Instruction::FAdd &&
2086 cast<Instruction>(BO->user_back())->getOpcode() == Instruction::FSub)
2089 ReassociateExpression(BO);