Searched refs:OldPhi (Results 1 – 1 of 1) sorted by relevance
1070 PHINode *OldPhi = dyn_cast<PHINode>(I); in NormalizeReturnBlock() local1071 if (!OldPhi) in NormalizeReturnBlock()1075 PHINode::Create(OldPhi->getType(), NumPredsFromEntries + 1, "", Ins); in NormalizeReturnBlock()1076 OldPhi->replaceAllUsesWith(RetPhi); in NormalizeReturnBlock()1081 RetPhi->addIncoming(OldPhi->getIncomingValueForBlock(E), E); in NormalizeReturnBlock()1082 OldPhi->removeIncomingValue(E); in NormalizeReturnBlock()1089 if (auto *OldPhiVal = IsTrivialPhi(OldPhi)) { in NormalizeReturnBlock()1090 OldPhi->replaceAllUsesWith(OldPhiVal); in NormalizeReturnBlock()1091 DeadPhis.push_back(OldPhi); in NormalizeReturnBlock()