Lines Matching refs:Factor
1157 Value *ReassociatePass::RemoveFactorFromExpression(Value *V, Value *Factor) { in RemoveFactorFromExpression() argument
1175 if (Factors[i].Op == Factor) { in RemoveFactorFromExpression()
1182 if (ConstantInt *FC1 = dyn_cast<ConstantInt>(Factor)) { in RemoveFactorFromExpression()
1189 } else if (ConstantFP *FC1 = dyn_cast<ConstantFP>(Factor)) { in RemoveFactorFromExpression()
1660 Value *Factor = Factors[i]; in OptimizeAdd() local
1661 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1664 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1667 MaxOccVal = Factor; in OptimizeAdd()
1673 if (ConstantInt *CI = dyn_cast<ConstantInt>(Factor)) { in OptimizeAdd()
1675 Factor = ConstantInt::get(CI->getContext(), -CI->getValue()); in OptimizeAdd()
1676 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1678 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1681 MaxOccVal = Factor; in OptimizeAdd()
1684 } else if (ConstantFP *CF = dyn_cast<ConstantFP>(Factor)) { in OptimizeAdd()
1688 Factor = ConstantFP::get(CF->getContext(), F); in OptimizeAdd()
1689 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1691 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1694 MaxOccVal = Factor; in OptimizeAdd()
1785 SmallVectorImpl<Factor> &Factors) { in collectMultiplyFactors()
1823 Factors.push_back(Factor(Op, Count)); in collectMultiplyFactors()
1831 llvm::stable_sort(Factors, [](const Factor &LHS, const Factor &RHS) { in collectMultiplyFactors()
1862 SmallVectorImpl<Factor> &Factors) { in buildMinimalMultiplyDAG()
1893 [](const Factor &LHS, const Factor &RHS) { in buildMinimalMultiplyDAG()
1928 SmallVector<Factor, 4> Factors; in OptimizeMul()