Lines Matching refs:Preds

304                                       ArrayRef<BasicBlock *> Preds,
318 i = Preds.begin(), e = Preds.end(); i != e; ++i) {
352 i = Preds.begin(), e = Preds.end(); i != e; ++i) {
380 ArrayRef<BasicBlock*> Preds, BranchInst *BI,
391 InVal = PN->getIncomingValueForBlock(Preds[0]);
392 for (unsigned i = 1, e = Preds.size(); i != e; ++i)
393 if (InVal != PN->getIncomingValueForBlock(Preds[i])) {
403 for (unsigned i = 0, e = Preds.size(); i != e; ++i) {
404 // Explicitly check the BB index here to handle duplicates in Preds.
405 int Idx = PN->getBasicBlockIndex(Preds[i]);
413 PHINode::Create(PN->getType(), Preds.size(), PN->getName() + ".ph", BI);
416 // Move all of the PHI values for 'Preds' to the new PHI.
417 for (unsigned i = 0, e = Preds.size(); i != e; ++i) {
418 Value *V = PN->removeIncomingValue(Preds[i], false);
419 NewPHI->addIncoming(V, Preds[i]);
434 /// Preds array, which has NumPreds elements in it. The new block is given a
443 ArrayRef<BasicBlock*> Preds,
452 // Move the edges from Preds to point to NewBB instead of BB.
453 for (unsigned i = 0, e = Preds.size(); i != e; ++i) {
457 assert(!isa<IndirectBrInst>(Preds[i]->getTerminator()) &&
459 Preds[i]->getTerminator()->replaceUsesOfWith(BB, NewBB);
463 // node becomes an incoming value for BB's phi node. However, if the Preds
466 if (Preds.size() == 0) {
475 UpdateAnalysisInformation(BB, NewBB, Preds, P, HasLoopExit);
478 UpdatePHINodes(BB, NewBB, Preds, BI, P, HasLoopExit);
484 /// new basic blocks gets the predecessors listed in Preds. The other basic
496 ArrayRef<BasicBlock*> Preds,
502 // Create a new basic block for OrigBB's predecessors listed in Preds. Insert
512 // Move the edges from Preds to point to NewBB1 instead of OrigBB.
513 for (unsigned i = 0, e = Preds.size(); i != e; ++i) {
517 assert(!isa<IndirectBrInst>(Preds[i]->getTerminator()) &&
519 Preds[i]->getTerminator()->replaceUsesOfWith(OrigBB, NewBB1);
524 UpdateAnalysisInformation(OrigBB, NewBB1, Preds, P, HasLoopExit);
527 UpdatePHINodes(OrigBB, NewBB1, Preds, BI1, P, HasLoopExit);