Lines Matching refs:NewVal
440 Value *NewVal = SSA.GetValueInMiddleOfBlock(ALoad->getParent()); in run() local
441 replaceLoadWithValue(ALoad, NewVal); in run()
444 if (NewVal == ALoad) NewVal = UndefValue::get(NewVal->getType()); in run()
445 ALoad->replaceAllUsesWith(NewVal); in run()
446 ReplacedLoads[ALoad] = NewVal; in run()
460 Value *NewVal = ReplacedLoads[User]; in run() local
461 assert(NewVal && "not a replaced load?"); in run()
466 DenseMap<Value*, Value*>::iterator RLI = ReplacedLoads.find(NewVal); in run()
468 NewVal = RLI->second; in run()
469 RLI = ReplacedLoads.find(NewVal); in run()
472 replaceLoadWithValue(cast<LoadInst>(User), NewVal); in run()
473 User->replaceAllUsesWith(NewVal); in run()