Lines Matching refs:SomePHI
713 PHINode *SomePHI = I->second;
714 BasicBlock *BB = SomePHI->getParent();
715 if (&BB->front() != SomePHI)
721 if (SomePHI->getNumIncomingValues() == getNumPreds(BB))
732 // Now we loop through all BB's which have entries in SomePHI and remove
734 for (unsigned i = 0, e = SomePHI->getNumIncomingValues(); i != e; ++i) {
737 Preds.begin(), Preds.end(), SomePHI->getIncomingBlock(i));
738 assert(EntIt != Preds.end() && *EntIt == SomePHI->getIncomingBlock(i) &&
749 unsigned NumBadPreds = SomePHI->getNumIncomingValues();
751 while ((SomePHI = dyn_cast<PHINode>(BBI++)) &&
752 SomePHI->getNumIncomingValues() == NumBadPreds) {
753 Value *UndefVal = UndefValue::get(SomePHI->getType());
755 SomePHI->addIncoming(UndefVal, Preds[pred]);