Lines Matching defs:NewPt

156   /// \param NewPt the insertion point to be checked
160 /// \pre NewPt and all instruction in InsertPts belong to the same function
161 /// \return true if one of the insertion point in InsertPts dominates NewPt,
163 bool isDominated(Instruction *NewPt, Instruction *User, unsigned OpNo,
170 /// \param NewPt the insertion point to be checked
174 /// \pre NewPt and all instruction in InsertPts belong to the same function
177 /// have been merged with NewPt in a common dominator,
179 bool tryAndMerge(Instruction *NewPt, Instruction *User, unsigned OpNo,
203 /// Transfer the list of dominated uses of IPI to NewPt in InsertPts.
205 static void appendAndTransferDominatedUses(Instruction *NewPt,
211 // Transfer the dominated uses of IPI to NewPt
217 InsertPts[NewPt] = std::move(OldUses);
379 bool AArch64PromoteConstant::isDominated(Instruction *NewPt, Instruction *User,
383 *NewPt->getParent()->getParent()).getDomTree();
386 // NewPt. If it is, remember that.
388 if (NewPt == IPI.first || DT.dominates(IPI.first, NewPt) ||
392 (IPI.first->getParent() != NewPt->getParent() &&
393 DT.dominates(IPI.first->getParent(), NewPt->getParent()))) {
405 bool AArch64PromoteConstant::tryAndMerge(Instruction *NewPt, Instruction *User,
409 *NewPt->getParent()->getParent()).getDomTree();
410 BasicBlock *NewBB = NewPt->getParent();
413 // NewPt and thus useless or can be combined with NewPt into a common
421 // By construction, NewPt is dominating the other.
426 appendAndTransferDominatedUses(NewPt, User, OpNo, IPI, InsertPts);
441 NewPt = CommonDominator->getTerminator();
448 LLVM_DEBUG(NewPt->print(dbgs()));
450 appendAndTransferDominatedUses(NewPt, User, OpNo, IPI, InsertPts);
471 // point in a common dominator or if NewPt dominates an existing one.