Lines Matching defs:NewPt
292 bool hasMemoryUse(const Instruction *NewPt, MemoryDef *Def,
299 // between Def and NewPt. This function is only called for stores: Def is
305 bool hasEHOrLoadsOnPath(const Instruction *NewPt, MemoryDef *Def,
316 // to NewPt.
317 bool safeToHoistLdSt(const Instruction *NewPt, const Instruction *OldPt,
585 bool GVNHoist::hasMemoryUse(const Instruction *NewPt, MemoryDef *Def,
593 const BasicBlock *NewBB = NewPt->getParent();
604 // Do not check whether MU aliases Def when MU occurs before NewPt.
607 if (firstInBB(Insn, NewPt))
638 bool GVNHoist::hasEHOrLoadsOnPath(const Instruction *NewPt, MemoryDef *Def,
640 const BasicBlock *NewBB = NewPt->getParent();
662 if (hasMemoryUse(NewPt, Def, BB))
705 bool GVNHoist::safeToHoistLdSt(const Instruction *NewPt,
709 if (NewPt == OldPt)
712 const BasicBlock *NewBB = NewPt->getParent();
725 if (!firstInBB(UD->getMemoryInst(), NewPt))
726 // Cannot move the load or store to NewPt above its definition in D.
731 if (hasEHOrLoadsOnPath(NewPt, cast<MemoryDef>(U), NBBsOnAllPaths))