Home
last modified time | relevance | path

Searched refs:ArgumentConstants (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/IPO/
DIPConstantPropagation.cpp56 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()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DIPConstantPropagation.cpp85 SmallVector<std::pair<Constant*, bool>, 16> ArgumentConstants; in PropagateConstantsIntoArguments() local
86 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 …]