Searched refs:OldPhi (Results 1 – 1 of 1) sorted by relevance
1048 PHINode *OldPhi = dyn_cast<PHINode>(I); in normalizeReturnBlock() local1049 if (!OldPhi) in normalizeReturnBlock()1053 PHINode::Create(OldPhi->getType(), NumPredsFromEntries + 1, ""); in normalizeReturnBlock()1055 OldPhi->replaceAllUsesWith(RetPhi); in normalizeReturnBlock()1060 RetPhi->addIncoming(OldPhi->getIncomingValueForBlock(E), E); in normalizeReturnBlock()1061 OldPhi->removeIncomingValue(E); in normalizeReturnBlock()1068 if (auto *OldPhiVal = IsTrivialPhi(OldPhi)) { in normalizeReturnBlock()1069 OldPhi->replaceAllUsesWith(OldPhiVal); in normalizeReturnBlock()1070 DeadPhis.push_back(OldPhi); in normalizeReturnBlock()