Lines Matching defs:Candidate
209 BasicBlock *Candidate = nullptr;
214 // If we don't yet have a candidate for dominator yet, take this one.
215 if (Candidate == nullptr) {
216 Candidate = Pred;
219 // Walk the alternate and current candidate back to find a common ancestor.
221 while (Alternate != Candidate) {
222 if (Candidate->BlockID > Alternate->BlockID)
223 Candidate = Candidate->DominatorNode.Parent;
228 DominatorNode.Parent = Candidate;
236 BasicBlock *Candidate = nullptr;
241 // If we don't yet have a candidate for post-dominator yet, take this one.
242 if (Candidate == nullptr) {
243 Candidate = Succ;
246 // Walk the alternate and current candidate back to find a common ancestor.
248 while (Alternate != Candidate) {
249 if (Candidate->BlockID < Alternate->BlockID)
250 Candidate = Candidate->PostDominatorNode.Parent;
255 PostDominatorNode.Parent = Candidate;