• Home
  • Raw
  • Download

Lines Matching refs:Factor

995 Value *ReassociatePass::RemoveFactorFromExpression(Value *V, Value *Factor) {  in RemoveFactorFromExpression()  argument
1013 if (Factors[i].Op == Factor) { in RemoveFactorFromExpression()
1020 if (ConstantInt *FC1 = dyn_cast<ConstantInt>(Factor)) { in RemoveFactorFromExpression()
1027 } else if (ConstantFP *FC1 = dyn_cast<ConstantFP>(Factor)) { in RemoveFactorFromExpression()
1506 Value *Factor = Factors[i]; in OptimizeAdd() local
1507 if (!Duplicates.insert(Factor).second) in OptimizeAdd()
1510 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1513 MaxOccVal = Factor; in OptimizeAdd()
1519 if (ConstantInt *CI = dyn_cast<ConstantInt>(Factor)) { in OptimizeAdd()
1521 Factor = ConstantInt::get(CI->getContext(), -CI->getValue()); in OptimizeAdd()
1522 assert(!Duplicates.count(Factor) && in OptimizeAdd()
1524 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1527 MaxOccVal = Factor; in OptimizeAdd()
1530 } else if (ConstantFP *CF = dyn_cast<ConstantFP>(Factor)) { in OptimizeAdd()
1534 Factor = ConstantFP::get(CF->getContext(), F); in OptimizeAdd()
1535 assert(!Duplicates.count(Factor) && in OptimizeAdd()
1537 unsigned Occ = ++FactorOccurrences[Factor]; in OptimizeAdd()
1540 MaxOccVal = Factor; in OptimizeAdd()
1630 SmallVectorImpl<Factor> &Factors) { in collectMultiplyFactors()
1668 Factors.push_back(Factor(Op, Count)); in collectMultiplyFactors()
1677 [](const Factor &LHS, const Factor &RHS) { in collectMultiplyFactors()
1708 SmallVectorImpl<Factor> &Factors) { in buildMinimalMultiplyDAG()
1739 [](const Factor &LHS, const Factor &RHS) { in buildMinimalMultiplyDAG()
1774 SmallVector<Factor, 4> Factors; in OptimizeMul()