Home
last modified time | relevance | path

Searched refs:OldPhi (Results 1 – 3 of 3) 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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DPartialInlining.cpp1058 PHINode *OldPhi = dyn_cast<PHINode>(I); in NormalizeReturnBlock() local
1059 if (!OldPhi) in NormalizeReturnBlock()
1063 PHINode::Create(OldPhi->getType(), NumPredsFromEntries + 1, "", Ins); in NormalizeReturnBlock()
1064 OldPhi->replaceAllUsesWith(RetPhi); in NormalizeReturnBlock()
1069 RetPhi->addIncoming(OldPhi->getIncomingValueForBlock(E), E); in NormalizeReturnBlock()
1070 OldPhi->removeIncomingValue(E); in NormalizeReturnBlock()
1077 if (auto *OldPhiVal = IsTrivialPhi(OldPhi)) { in NormalizeReturnBlock()
1078 OldPhi->replaceAllUsesWith(OldPhiVal); in NormalizeReturnBlock()
1079 DeadPhis.push_back(OldPhi); in NormalizeReturnBlock()