Lines Matching refs:Factor
1100 Value *ReassociatePass::RemoveFactorFromExpression(Value *V, Value *Factor) { in RemoveFactorFromExpression() argument
1118 if (Factors[i].Op == Factor) { in RemoveFactorFromExpression()
1125 if (ConstantInt *FC1 = dyn_cast<ConstantInt>(Factor)) { in RemoveFactorFromExpression()
1132 } else if (ConstantFP *FC1 = dyn_cast<ConstantFP>(Factor)) { in RemoveFactorFromExpression()
1602 for (Value *Factor : Factors) { in OptimizeAdd()
1603 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1606 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1609 MaxOccVal = Factor; in OptimizeAdd()
1615 if (ConstantInt *CI = dyn_cast<ConstantInt>(Factor)) { in OptimizeAdd()
1617 Factor = ConstantInt::get(CI->getContext(), -CI->getValue()); in OptimizeAdd()
1618 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1620 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1623 MaxOccVal = Factor; in OptimizeAdd()
1626 } else if (ConstantFP *CF = dyn_cast<ConstantFP>(Factor)) { in OptimizeAdd()
1630 Factor = ConstantFP::get(CF->getContext(), F); in OptimizeAdd()
1631 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1633 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1636 MaxOccVal = Factor; in OptimizeAdd()
1727 SmallVectorImpl<Factor> &Factors) { in collectMultiplyFactors()
1765 Factors.push_back(Factor(Op, Count)); in collectMultiplyFactors()
1773 llvm::stable_sort(Factors, [](const Factor &LHS, const Factor &RHS) { in collectMultiplyFactors()
1804 SmallVectorImpl<Factor> &Factors) { in buildMinimalMultiplyDAG()
1835 [](const Factor &LHS, const Factor &RHS) { in buildMinimalMultiplyDAG()
1843 for (Factor &F : Factors) { in buildMinimalMultiplyDAG()
1870 SmallVector<Factor, 4> Factors; in OptimizeMul()