Lines Matching refs:Mul

349   assert((Opcode == Instruction::Mul || Opcode == Instruction::FMul) &&  in IncorporateWeight()
595 if (((Opcode == Instruction::Mul && match(Op, m_Neg(m_Value()))) || in LinearizeExprTree()
600 Instruction *Mul = LowerNegateToMultiply(Neg); in LinearizeExprTree() local
601 LLVM_DEBUG(dbgs() << *Mul << '\n'); in LinearizeExprTree()
602 Worklist.push_back(std::make_pair(Mul, Weight)); in LinearizeExprTree()
603 for (User *U : Mul->users()) { in LinearizeExprTree()
1000 for (auto Op : {Instruction::Add, Instruction::Sub, Instruction::Mul, in shouldConvertOrWithNoCommonBitsToAdd()
1094 BinaryOperator *Mul = in ConvertShiftToMul() local
1097 Mul->takeName(Shl); in ConvertShiftToMul()
1100 Shl->replaceAllUsesWith(Mul); in ConvertShiftToMul()
1101 Mul->setDebugLoc(Shl->getDebugLoc()); in ConvertShiftToMul()
1111 Mul->setHasNoSignedWrap(true); in ConvertShiftToMul()
1112 Mul->setHasNoUnsignedWrap(NUW); in ConvertShiftToMul()
1113 return Mul; in ConvertShiftToMul()
1158 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul, Instruction::FMul); in RemoveFactorFromExpression()
1233 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul, Instruction::FMul); in FindSingleUseMultiplyFactors()
1577 Instruction *Mul = CreateMul(TheOp, C, "factor", I, I); in OptimizeAdd() local
1582 RedoInsts.insert(Mul); in OptimizeAdd()
1586 return Mul; in OptimizeAdd()
1591 Ops.insert(Ops.begin(), ValueEntry(getRank(Mul), Mul)); in OptimizeAdd()
1648 isReassociableOp(Ops[i].Op, Instruction::Mul, Instruction::FMul); in OptimizeAdd()
1720 isReassociableOp(Ops[i].Op, Instruction::Mul, Instruction::FMul); in OptimizeAdd()
2007 case Instruction::Mul: in OptimizeExpression()
2208 if (isReassociableOp(I->getOperand(0), Instruction::Mul) || in OptimizeInst()
2210 (isReassociableOp(I->user_back(), Instruction::Mul) || in OptimizeInst()
2266 if (isReassociableOp(I->getOperand(1), Instruction::Mul) && in OptimizeInst()
2268 !isReassociableOp(I->user_back(), Instruction::Mul))) { in OptimizeInst()
2382 if (I->getOpcode() == Instruction::Mul && in ReassociateExpression()