Lines Matching refs:NewPt

132   /// \param NewPt the insertion point to be checked
135 /// \pre NewPt and all instruction in InsertPts belong to the same function
136 /// \return true if one of the insertion point in InsertPts dominates NewPt,
138 bool isDominated(Instruction *NewPt, Use &Use, InsertionPoints &InsertPts);
144 /// \param NewPt the insertion point to be checked
147 /// \pre NewPt and all instruction in InsertPts belong to the same function
150 /// have been merged with NewPt in a common dominator,
152 bool tryAndMerge(Instruction *NewPt, Use &Use, InsertionPoints &InsertPts);
184 /// Transfer the list of dominated uses of IPI to NewPt in InsertPts.
186 static void appendAndTransferDominatedUses(Instruction *NewPt, Use &Use,
191 // Transfer the dominated uses of IPI to NewPt
197 InsertPts[NewPt] = std::move(OldUses);
342 bool AArch64PromoteConstant::isDominated(Instruction *NewPt, Use &Use,
346 *NewPt->getParent()->getParent()).getDomTree();
349 // NewPt. If it is, remember that.
351 if (NewPt == IPI.first || DT.dominates(IPI.first, NewPt) ||
355 (IPI.first->getParent() != NewPt->getParent() &&
356 DT.dominates(IPI.first->getParent(), NewPt->getParent()))) {
368 bool AArch64PromoteConstant::tryAndMerge(Instruction *NewPt, Use &Use,
371 *NewPt->getParent()->getParent()).getDomTree();
372 BasicBlock *NewBB = NewPt->getParent();
375 // NewPt and thus useless or can be combined with NewPt into a common
383 // By construction, NewPt is dominating the other.
388 appendAndTransferDominatedUses(NewPt, Use, IPI, InsertPts);
403 NewPt = CommonDominator->getTerminator();
410 DEBUG(NewPt->print(dbgs()));
412 appendAndTransferDominatedUses(NewPt, Use, IPI, InsertPts);
449 // point in a common dominator or if NewPt dominates an existing one.