Home
last modified time | relevance | path

Searched refs:OldPhi (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/IPO/
DPartialInlining.cpp102 PHINode* OldPhi = dyn_cast<PHINode>(I); in unswitchFunction() local
103 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()
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DPartialInlining.cpp95 PHINode* OldPhi = dyn_cast<PHINode>(I); in unswitchFunction() local
96 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()