Home | History | Annotate | Download | only in Utils

Lines Matching refs:Preds

320                                       ArrayRef<BasicBlock *> Preds,
334 i = Preds.begin(), e = Preds.end(); i != e; ++i) {
337 // If we need to preserve LCSSA, determine if any of the preds is a loop
344 // If we need to preserve LoopInfo, note whether any of the preds crosses
368 i = Preds.begin(), e = Preds.end(); i != e; ++i) {
396 ArrayRef<BasicBlock*> Preds, BranchInst *BI,
407 InVal = PN->getIncomingValueForBlock(Preds[0]);
408 for (unsigned i = 1, e = Preds.size(); i != e; ++i)
409 if (InVal != PN->getIncomingValueForBlock(Preds[i])) {
419 for (unsigned i = 0, e = Preds.size(); i != e; ++i)
420 PN->removeIncomingValue(Preds[i], false);
425 PHINode::Create(PN->getType(), Preds.size(), PN->getName() + ".ph", BI);
428 // Move all of the PHI values for 'Preds' to the new PHI.
429 for (unsigned i = 0, e = Preds.size(); i != e; ++i) {
430 Value *V = PN->removeIncomingValue(Preds[i], false);
431 NewPHI->addIncoming(V, Preds[i]);
446 /// Preds array, which has NumPreds elements in it. The new block is given a
455 ArrayRef<BasicBlock*> Preds,
464 // Move the edges from Preds to point to NewBB instead of BB.
465 for (unsigned i = 0, e = Preds.size(); i != e; ++i) {
469 assert(!isa<IndirectBrInst>(Preds[i]->getTerminator()) &&
471 Preds[i]->getTerminator()->replaceUsesOfWith(BB, NewBB);
475 // node becomes an incoming value for BB's phi node. However, if the Preds
478 if (Preds.size() == 0) {
487 UpdateAnalysisInformation(BB, NewBB, Preds, P, HasLoopExit);
490 UpdatePHINodes(BB, NewBB, Preds, BI, P, HasLoopExit);
496 /// new basic blocks gets the predecessors listed in Preds. The other basic
508 ArrayRef<BasicBlock*> Preds,
514 // Create a new basic block for OrigBB's predecessors listed in Preds. Insert
524 // Move the edges from Preds to point to NewBB1 instead of OrigBB.
525 for (unsigned i = 0, e = Preds.size(); i != e; ++i) {
529 assert(!isa<IndirectBrInst>(Preds[i]->getTerminator()) &&
531 Preds[i]->getTerminator()->replaceUsesOfWith(OrigBB, NewBB1);
536 UpdateAnalysisInformation(OrigBB, NewBB1, Preds, P, HasLoopExit);
539 UpdatePHINodes(OrigBB, NewBB1, Preds, BI1, P, HasLoopExit);