Searched refs:ArgumentConstants (Results 1 – 2 of 2) sorted by relevance
56 SmallVector<std::pair<Constant*, bool>, 16> ArgumentConstants; in PropagateConstantsIntoArguments() local57 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()[all …]
85 SmallVector<std::pair<Constant*, bool>, 16> ArgumentConstants; in PropagateConstantsIntoArguments() local86 ArgumentConstants.resize(F.arg_size()); in PropagateConstantsIntoArguments()107 for (unsigned i = 0, e = ArgumentConstants.size(); i != e; in PropagateConstantsIntoArguments()111 if (ArgumentConstants[i].second) in PropagateConstantsIntoArguments()115 if (C && ArgumentConstants[i].first == 0) { in PropagateConstantsIntoArguments()116 ArgumentConstants[i].first = C; // First constant seen. in PropagateConstantsIntoArguments()117 } else if (C && ArgumentConstants[i].first == C) { in PropagateConstantsIntoArguments()124 if (++NumNonconstant == ArgumentConstants.size()) in PropagateConstantsIntoArguments()126 ArgumentConstants[i].second = true; in PropagateConstantsIntoArguments()132 assert(NumNonconstant != ArgumentConstants.size()); in PropagateConstantsIntoArguments()[all …]