Home | History | Annotate | Download | only in Utils

Lines Matching refs:PHINode

377 bool llvm::RecursivelyDeleteDeadPHINode(PHINode *PN,
452 if (!isa<PHINode>(BB->begin()))
461 while (PHINode *PN = dyn_cast<PHINode>(PhiIt)) {
483 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) {
551 for (BasicBlock::iterator I = Succ->begin(); isa<PHINode>(I); ++I) {
552 PHINode *PN = cast<PHINode>(I);
554 // If the incoming value from BB is again a PHINode in
557 PHINode *BBPN = dyn_cast<PHINode>(PN->getIncomingValueForBlock(BB));
632 static void gatherIncomingValuesToPhi(PHINode *PN,
648 static void replaceUndefValuesInPhi(PHINode *PN,
672 PHINode *PN) {
691 if (isa<PHINode>(OldVal) && cast<PHINode>(OldVal)->getParent() == BB) {
692 PHINode *OldValPN = cast<PHINode>(OldVal);
756 while (isa<PHINode>(*BBI)) {
758 if (PHINode* PN = dyn_cast<PHINode>(U.getUser())) {
771 if (isa<PHINode>(Succ->begin())) {
778 for (BasicBlock::iterator I = Succ->begin(); isa<PHINode>(I); ++I) {
779 PHINode *PN = cast<PHINode>(I);
793 while (PHINode *PN = dyn_cast<PHINode>(&BB->front())) {
822 DenseMap<uintptr_t, PHINode *> HashMap;
825 DenseMap<PHINode *, PHINode *> CollisionMap;
829 PHINode *PN = dyn_cast<PHINode>(I++); ) {
840 for (PHINode::block_iterator I = PN->block_begin(), E = PN->block_end();
848 std::pair<DenseMap<uintptr_t, PHINode *>::iterator, bool> Pair =
852 for (PHINode *OtherPN = Pair.first->second; ; ) {
861 DenseMap<PHINode *, PHINode *>::iterator I = CollisionMap.find(OtherPN);
864 PHINode *Old = Pair.first->second;