Lines Matching refs:OldVal
936 static Value *selectIncomingValueForBlock(Value *OldVal, BasicBlock *BB, in selectIncomingValueForBlock() argument
938 if (!isa<UndefValue>(OldVal)) { in selectIncomingValueForBlock()
940 IncomingValues.find(BB)->second == OldVal) && in selectIncomingValueForBlock()
943 IncomingValues.insert(std::make_pair(BB, OldVal)); in selectIncomingValueForBlock()
944 return OldVal; in selectIncomingValueForBlock()
950 return OldVal; in selectIncomingValueForBlock()
1055 Value *OldVal = PN->removeIncomingValue(BB, false); in redirectValuesFromPredecessorsToPhi() local
1056 assert(OldVal && "No entry in PHI for Pred BB!"); in redirectValuesFromPredecessorsToPhi()
1073 if (isa<PHINode>(OldVal) && cast<PHINode>(OldVal)->getParent() == BB) { in redirectValuesFromPredecessorsToPhi()
1074 PHINode *OldValPN = cast<PHINode>(OldVal); in redirectValuesFromPredecessorsToPhi()
1105 selectIncomingValueForBlock(OldVal, PredBB, IncomingValues); in redirectValuesFromPredecessorsToPhi()
1112 PN->addIncoming(OldVal, BB); in redirectValuesFromPredecessorsToPhi()