Lines Matching refs:Factor

1183 Value *ReassociatePass::RemoveFactorFromExpression(Value *V, Value *Factor) {  in RemoveFactorFromExpression()  argument
1202 if (Factors[i].Op == Factor) { in RemoveFactorFromExpression()
1209 if (ConstantInt *FC1 = dyn_cast<ConstantInt>(Factor)) { in RemoveFactorFromExpression()
1216 } else if (ConstantFP *FC1 = dyn_cast<ConstantFP>(Factor)) { in RemoveFactorFromExpression()
1685 for (Value *Factor : Factors) { in OptimizeAdd()
1686 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1689 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1692 MaxOccVal = Factor; in OptimizeAdd()
1698 if (ConstantInt *CI = dyn_cast<ConstantInt>(Factor)) { in OptimizeAdd()
1700 Factor = ConstantInt::get(CI->getContext(), -CI->getValue()); in OptimizeAdd()
1701 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1703 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1706 MaxOccVal = Factor; in OptimizeAdd()
1709 } else if (ConstantFP *CF = dyn_cast<ConstantFP>(Factor)) { in OptimizeAdd()
1713 Factor = ConstantFP::get(CF->getContext(), F); in OptimizeAdd()
1714 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1716 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1719 MaxOccVal = Factor; in OptimizeAdd()
1810 SmallVectorImpl<Factor> &Factors) { in collectMultiplyFactors()
1848 Factors.push_back(Factor(Op, Count)); in collectMultiplyFactors()
1856 llvm::stable_sort(Factors, [](const Factor &LHS, const Factor &RHS) { in collectMultiplyFactors()
1887 SmallVectorImpl<Factor> &Factors) { in buildMinimalMultiplyDAG()
1918 [](const Factor &LHS, const Factor &RHS) { in buildMinimalMultiplyDAG()
1926 for (Factor &F : Factors) { in buildMinimalMultiplyDAG()
1953 SmallVector<Factor, 4> Factors; in OptimizeMul()