Lines Matching refs:PHINode
376 bool llvm::RecursivelyDeleteDeadPHINode(PHINode *PN,
451 if (!isa<PHINode>(BB->begin()))
460 while (PHINode *PN = dyn_cast<PHINode>(PhiIt)) {
482 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) {
554 for (BasicBlock::iterator I = Succ->begin(); isa<PHINode>(I); ++I) {
555 PHINode *PN = cast<PHINode>(I);
557 // If the incoming value from BB is again a PHINode in
560 PHINode *BBPN = dyn_cast<PHINode>(PN->getIncomingValueForBlock(BB));
635 static void gatherIncomingValuesToPhi(PHINode *PN,
651 static void replaceUndefValuesInPhi(PHINode *PN,
675 PHINode *PN) {
694 if (isa<PHINode>(OldVal) && cast<PHINode>(OldVal)->getParent() == BB) {
695 PHINode *OldValPN = cast<PHINode>(OldVal);
759 while (isa<PHINode>(*BBI)) {
762 if (PHINode* PN = dyn_cast<PHINode>(*UI)) {
775 if (isa<PHINode>(Succ->begin())) {
782 for (BasicBlock::iterator I = Succ->begin(); isa<PHINode>(I); ++I) {
783 PHINode *PN = cast<PHINode>(I);
797 while (PHINode *PN = dyn_cast<PHINode>(&BB->front())) {
826 DenseMap<uintptr_t, PHINode *> HashMap;
829 DenseMap<PHINode *, PHINode *> CollisionMap;
833 PHINode *PN = dyn_cast<PHINode>(I++); ) {
844 for (PHINode::block_iterator I = PN->block_begin(), E = PN->block_end();
852 std::pair<DenseMap<uintptr_t, PHINode *>::iterator, bool> Pair =
856 for (PHINode *OtherPN = Pair.first->second; ; ) {
865 DenseMap<PHINode *, PHINode *>::iterator I = CollisionMap.find(OtherPN);
868 PHINode *Old = Pair.first->second;