Lines Matching refs:NewPt
293 bool hasMemoryUse(const Instruction *NewPt, MemoryDef *Def,
306 bool hasEHOrLoadsOnPath(const Instruction *NewPt, MemoryDef *Def,
318 bool safeToHoistLdSt(const Instruction *NewPt, const Instruction *OldPt,
586 bool GVNHoist::hasMemoryUse(const Instruction *NewPt, MemoryDef *Def, in hasMemoryUse() argument
594 const BasicBlock *NewBB = NewPt->getParent(); in hasMemoryUse()
608 if (firstInBB(Insn, NewPt)) in hasMemoryUse()
639 bool GVNHoist::hasEHOrLoadsOnPath(const Instruction *NewPt, MemoryDef *Def, in hasEHOrLoadsOnPath() argument
641 const BasicBlock *NewBB = NewPt->getParent(); in hasEHOrLoadsOnPath()
663 if (hasMemoryUse(NewPt, Def, BB)) in hasEHOrLoadsOnPath()
706 bool GVNHoist::safeToHoistLdSt(const Instruction *NewPt, in safeToHoistLdSt() argument
710 if (NewPt == OldPt) in safeToHoistLdSt()
713 const BasicBlock *NewBB = NewPt->getParent(); in safeToHoistLdSt()
726 if (!firstInBB(UD->getMemoryInst(), NewPt)) in safeToHoistLdSt()
732 if (hasEHOrLoadsOnPath(NewPt, cast<MemoryDef>(U), NBBsOnAllPaths)) in safeToHoistLdSt()