Lines Matching refs:ArgumentConstants
56 SmallVector<std::pair<Constant*, bool>, 16> ArgumentConstants; in PropagateConstantsIntoArguments() local
57 ArgumentConstants.resize(F.arg_size()); in PropagateConstantsIntoArguments()
78 for (unsigned i = 0, e = ArgumentConstants.size(); i != e; in PropagateConstantsIntoArguments()
82 if (ArgumentConstants[i].second) in PropagateConstantsIntoArguments()
86 if (C && ArgumentConstants[i].first == nullptr) { in PropagateConstantsIntoArguments()
87 ArgumentConstants[i].first = C; // First constant seen. in PropagateConstantsIntoArguments()
88 } else if (C && ArgumentConstants[i].first == C) { in PropagateConstantsIntoArguments()
95 if (++NumNonconstant == ArgumentConstants.size()) in PropagateConstantsIntoArguments()
97 ArgumentConstants[i].second = true; in PropagateConstantsIntoArguments()
103 assert(NumNonconstant != ArgumentConstants.size()); in PropagateConstantsIntoArguments()
106 for (unsigned i = 0, e = ArgumentConstants.size(); i != e; ++i, ++AI) { in PropagateConstantsIntoArguments()
108 if (ArgumentConstants[i].second || AI->use_empty() || in PropagateConstantsIntoArguments()
112 Value *V = ArgumentConstants[i].first; in PropagateConstantsIntoArguments()