Lines Matching refs:OldVal
695 static Value *selectIncomingValueForBlock(Value *OldVal, BasicBlock *BB, in selectIncomingValueForBlock() argument
697 if (!isa<UndefValue>(OldVal)) { in selectIncomingValueForBlock()
699 IncomingValues.find(BB)->second == OldVal) && in selectIncomingValueForBlock()
702 IncomingValues.insert(std::make_pair(BB, OldVal)); in selectIncomingValueForBlock()
703 return OldVal; in selectIncomingValueForBlock()
709 return OldVal; in selectIncomingValueForBlock()
761 Value *OldVal = PN->removeIncomingValue(BB, false); in redirectValuesFromPredecessorsToPhi() local
762 assert(OldVal && "No entry in PHI for Pred BB!"); in redirectValuesFromPredecessorsToPhi()
779 if (isa<PHINode>(OldVal) && cast<PHINode>(OldVal)->getParent() == BB) { in redirectValuesFromPredecessorsToPhi()
780 PHINode *OldValPN = cast<PHINode>(OldVal); in redirectValuesFromPredecessorsToPhi()
801 Value *Selected = selectIncomingValueForBlock(OldVal, PredBB, in redirectValuesFromPredecessorsToPhi()