Lines Matching refs:Factor
1140 Value *ReassociatePass::RemoveFactorFromExpression(Value *V, Value *Factor) { in RemoveFactorFromExpression() argument
1158 if (Factors[i].Op == Factor) { in RemoveFactorFromExpression()
1165 if (ConstantInt *FC1 = dyn_cast<ConstantInt>(Factor)) { in RemoveFactorFromExpression()
1172 } else if (ConstantFP *FC1 = dyn_cast<ConstantFP>(Factor)) { in RemoveFactorFromExpression()
1644 Value *Factor = Factors[i]; in OptimizeAdd() local
1645 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1648 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1651 MaxOccVal = Factor; in OptimizeAdd()
1657 if (ConstantInt *CI = dyn_cast<ConstantInt>(Factor)) { in OptimizeAdd()
1659 Factor = ConstantInt::get(CI->getContext(), -CI->getValue()); in OptimizeAdd()
1660 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1662 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1665 MaxOccVal = Factor; in OptimizeAdd()
1668 } else if (ConstantFP *CF = dyn_cast<ConstantFP>(Factor)) { in OptimizeAdd()
1672 Factor = ConstantFP::get(CF->getContext(), F); in OptimizeAdd()
1673 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1675 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1678 MaxOccVal = Factor; in OptimizeAdd()
1769 SmallVectorImpl<Factor> &Factors) { in collectMultiplyFactors()
1807 Factors.push_back(Factor(Op, Count)); in collectMultiplyFactors()
1815 llvm::stable_sort(Factors, [](const Factor &LHS, const Factor &RHS) { in collectMultiplyFactors()
1846 SmallVectorImpl<Factor> &Factors) { in buildMinimalMultiplyDAG()
1877 [](const Factor &LHS, const Factor &RHS) { in buildMinimalMultiplyDAG()
1912 SmallVector<Factor, 4> Factors; in OptimizeMul()