Searched refs:OldPhi (Results 1 – 2 of 2) sorted by relevance
102 PHINode* OldPhi = dyn_cast<PHINode>(I); in unswitchFunction() local103 if (!OldPhi) break; in unswitchFunction()105 PHINode *retPhi = PHINode::Create(OldPhi->getType(), 2, "", Ins); in unswitchFunction()106 OldPhi->replaceAllUsesWith(retPhi); in unswitchFunction()110 retPhi->addIncoming(OldPhi->getIncomingValueForBlock(newEntryBlock), in unswitchFunction()112 OldPhi->removeIncomingValue(newEntryBlock); in unswitchFunction()
95 PHINode* OldPhi = dyn_cast<PHINode>(I); in unswitchFunction() local96 if (!OldPhi) break; in unswitchFunction()98 PHINode* retPhi = PHINode::Create(OldPhi->getType(), 2, "", Ins); in unswitchFunction()99 OldPhi->replaceAllUsesWith(retPhi); in unswitchFunction()103 retPhi->addIncoming(OldPhi->getIncomingValueForBlock(newEntryBlock), in unswitchFunction()105 OldPhi->removeIncomingValue(newEntryBlock); in unswitchFunction()