Lines Matching refs:Mul

356   assert((Opcode == Instruction::Mul || Opcode == Instruction::FMul) &&  in IncorporateWeight()
606 if (((Opcode == Instruction::Mul && match(Op, m_Neg(m_Value()))) || in LinearizeExprTree()
611 Instruction *Mul = LowerNegateToMultiply(Neg); in LinearizeExprTree() local
612 LLVM_DEBUG(dbgs() << *Mul << '\n'); in LinearizeExprTree()
613 Worklist.push_back(std::make_pair(Mul, Weight)); in LinearizeExprTree()
614 for (User *U : Mul->users()) { in LinearizeExprTree()
1026 for (auto Op : {Instruction::Add, Instruction::Sub, Instruction::Mul, in shouldConvertOrWithNoCommonBitsToAdd()
1120 BinaryOperator *Mul = in ConvertShiftToMul() local
1123 Mul->takeName(Shl); in ConvertShiftToMul()
1126 Shl->replaceAllUsesWith(Mul); in ConvertShiftToMul()
1127 Mul->setDebugLoc(Shl->getDebugLoc()); in ConvertShiftToMul()
1137 Mul->setHasNoSignedWrap(true); in ConvertShiftToMul()
1138 Mul->setHasNoUnsignedWrap(NUW); in ConvertShiftToMul()
1139 return Mul; in ConvertShiftToMul()
1184 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul, Instruction::FMul); in RemoveFactorFromExpression()
1260 BinaryOperator *BO = isReassociableOp(V, Instruction::Mul, Instruction::FMul); in FindSingleUseMultiplyFactors()
1603 Instruction *Mul = CreateMul(TheOp, C, "factor", I, I); in OptimizeAdd() local
1608 RedoInsts.insert(Mul); in OptimizeAdd()
1612 return Mul; in OptimizeAdd()
1617 Ops.insert(Ops.begin(), ValueEntry(getRank(Mul), Mul)); in OptimizeAdd()
1674 isReassociableOp(Ops[i].Op, Instruction::Mul, Instruction::FMul); in OptimizeAdd()
1745 isReassociableOp(Ops[i].Op, Instruction::Mul, Instruction::FMul); in OptimizeAdd()
2032 case Instruction::Mul: in OptimizeExpression()
2233 if (isReassociableOp(I->getOperand(0), Instruction::Mul) || in OptimizeInst()
2235 (isReassociableOp(I->user_back(), Instruction::Mul) || in OptimizeInst()
2292 if (isReassociableOp(I->getOperand(1), Instruction::Mul) && in OptimizeInst()
2294 !isReassociableOp(I->user_back(), Instruction::Mul))) { in OptimizeInst()
2409 if (I->getOpcode() == Instruction::Mul && in ReassociateExpression()