Lines Matching refs:Factor

1014 Value *ReassociatePass::RemoveFactorFromExpression(Value *V, Value *Factor) {  in RemoveFactorFromExpression()  argument
1032 if (Factors[i].Op == Factor) { in RemoveFactorFromExpression()
1039 if (ConstantInt *FC1 = dyn_cast<ConstantInt>(Factor)) { in RemoveFactorFromExpression()
1046 } else if (ConstantFP *FC1 = dyn_cast<ConstantFP>(Factor)) { in RemoveFactorFromExpression()
1519 Value *Factor = Factors[i]; in OptimizeAdd() local
1520 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1523 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1526 MaxOccVal = Factor; in OptimizeAdd()
1532 if (ConstantInt *CI = dyn_cast<ConstantInt>(Factor)) { in OptimizeAdd()
1534 Factor = ConstantInt::get(CI->getContext(), -CI->getValue()); in OptimizeAdd()
1535 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1537 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1540 MaxOccVal = Factor; in OptimizeAdd()
1543 } else if (ConstantFP *CF = dyn_cast<ConstantFP>(Factor)) { in OptimizeAdd()
1547 Factor = ConstantFP::get(CF->getContext(), F); in OptimizeAdd()
1548 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1550 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1553 MaxOccVal = Factor; in OptimizeAdd()
1644 SmallVectorImpl<Factor> &Factors) { in collectMultiplyFactors()
1682 Factors.push_back(Factor(Op, Count)); in collectMultiplyFactors()
1691 [](const Factor &LHS, const Factor &RHS) { in collectMultiplyFactors()
1722 SmallVectorImpl<Factor> &Factors) { in buildMinimalMultiplyDAG()
1753 [](const Factor &LHS, const Factor &RHS) { in buildMinimalMultiplyDAG()
1788 SmallVector<Factor, 4> Factors; in OptimizeMul()