Lines Matching defs:NewPt
293 bool hasMemoryUse(const Instruction *NewPt, MemoryDef *Def,
300 // between Def and NewPt. This function is only called for stores: Def is
306 bool hasEHOrLoadsOnPath(const Instruction *NewPt, MemoryDef *Def,
317 // to NewPt.
318 bool safeToHoistLdSt(const Instruction *NewPt, const Instruction *OldPt,
586 bool GVNHoist::hasMemoryUse(const Instruction *NewPt, MemoryDef *Def,
594 const BasicBlock *NewBB = NewPt->getParent();
605 // Do not check whether MU aliases Def when MU occurs before NewPt.
608 if (firstInBB(Insn, NewPt))
639 bool GVNHoist::hasEHOrLoadsOnPath(const Instruction *NewPt, MemoryDef *Def,
641 const BasicBlock *NewBB = NewPt->getParent();
663 if (hasMemoryUse(NewPt, Def, BB))
706 bool GVNHoist::safeToHoistLdSt(const Instruction *NewPt,
710 if (NewPt == OldPt)
713 const BasicBlock *NewBB = NewPt->getParent();
726 if (!firstInBB(UD->getMemoryInst(), NewPt))
727 // Cannot move the load or store to NewPt above its definition in D.
732 if (hasEHOrLoadsOnPath(NewPt, cast<MemoryDef>(U), NBBsOnAllPaths))