Lines Matching refs:ParentVNI

360                               const VNInfo *ParentVNI,  in defValue()  argument
362 assert(ParentVNI && "Mapping NULL value"); in defValue()
364 assert(Edit->getParent().getVNInfoAt(Idx) == ParentVNI && "Bad Parent VNI"); in defValue()
372 Values.insert(std::make_pair(std::make_pair(RegIdx, ParentVNI->id), in defValue()
395 void SplitEditor::forceRecompute(unsigned RegIdx, const VNInfo *ParentVNI) { in forceRecompute() argument
396 assert(ParentVNI && "Mapping NULL value"); in forceRecompute()
397 ValueForcePair &VFP = Values[std::make_pair(RegIdx, ParentVNI->id)]; in forceRecompute()
417 VNInfo *ParentVNI, in defFromParent() argument
430 LiveRangeEdit::Remat RM(ParentVNI); in defFromParent()
444 return defValue(RegIdx, ParentVNI, Def); in defFromParent()
470 VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(Idx); in enterIntvBefore() local
471 if (!ParentVNI) { in enterIntvBefore()
475 DEBUG(dbgs() << ": valno " << ParentVNI->id << '\n'); in enterIntvBefore()
479 VNInfo *VNI = defFromParent(OpenIdx, ParentVNI, Idx, *MI->getParent(), MI); in enterIntvBefore()
487 VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(Idx); in enterIntvAfter() local
488 if (!ParentVNI) { in enterIntvAfter()
492 DEBUG(dbgs() << ": valno " << ParentVNI->id << '\n'); in enterIntvAfter()
496 VNInfo *VNI = defFromParent(OpenIdx, ParentVNI, Idx, *MI->getParent(), in enterIntvAfter()
506 VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(Last); in enterIntvAtEnd() local
507 if (!ParentVNI) { in enterIntvAtEnd()
511 DEBUG(dbgs() << ": valno " << ParentVNI->id); in enterIntvAtEnd()
512 VNInfo *VNI = defFromParent(OpenIdx, ParentVNI, Last, MBB, in enterIntvAtEnd()
537 VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(Boundary); in leaveIntvAfter() local
538 if (!ParentVNI) { in leaveIntvAfter()
542 DEBUG(dbgs() << ": valno " << ParentVNI->id << '\n'); in leaveIntvAfter()
550 if (SpillMode && !SlotIndex::isSameInstr(ParentVNI->def, Idx) && in leaveIntvAfter()
552 forceRecompute(0, ParentVNI); in leaveIntvAfter()
553 defFromParent(0, ParentVNI, Idx, *MI->getParent(), MI); in leaveIntvAfter()
557 VNInfo *VNI = defFromParent(0, ParentVNI, Boundary, *MI->getParent(), in leaveIntvAfter()
568 VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(Idx); in leaveIntvBefore() local
569 if (!ParentVNI) { in leaveIntvBefore()
573 DEBUG(dbgs() << ": valno " << ParentVNI->id << '\n'); in leaveIntvBefore()
577 VNInfo *VNI = defFromParent(0, ParentVNI, Idx, *MI->getParent(), MI); in leaveIntvBefore()
586 VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(Start); in leaveIntvAtTop() local
587 if (!ParentVNI) { in leaveIntvAtTop()
592 VNInfo *VNI = defFromParent(0, ParentVNI, Start, MBB, in leaveIntvAtTop()
601 const VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(Start); in overlapIntv() local
602 assert(ParentVNI == Edit->getParent().getVNInfoBefore(End) && in overlapIntv()
608 if (ParentVNI) in overlapIntv()
609 forceRecompute(0, ParentVNI); in overlapIntv()
730 VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(VNI->def); in hoistCopiesForSize() local
731 assert(ParentVNI && "Parent not live at complement def"); in hoistCopiesForSize()
735 if (Edit->didRematerialize(ParentVNI)) in hoistCopiesForSize()
739 DomPair &Dom = NearestDom[ParentVNI->id]; in hoistCopiesForSize()
744 if (VNI->def == ParentVNI->def) { in hoistCopiesForSize()
751 if (Values.lookup(std::make_pair(0, ParentVNI->id)).getPointer()) { in hoistCopiesForSize()
776 << " for parent " << ParentVNI->id << '@' << ParentVNI->def in hoistCopiesForSize()
787 VNInfo *ParentVNI = Parent->getValNumInfo(i); in hoistCopiesForSize() local
788 MachineBasicBlock *DefMBB = LIS.getMBBFromIndex(ParentVNI->def); in hoistCopiesForSize()
793 defFromParent(0, ParentVNI, Last, *Dom.first, in hoistCopiesForSize()
803 VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(VNI->def); in hoistCopiesForSize() local
804 const DomPair &Dom = NearestDom[ParentVNI->id]; in hoistCopiesForSize()
808 forceRecompute(0, ParentVNI); in hoistCopiesForSize()
821 VNInfo *ParentVNI = S.valno; in transferValues() local
846 ValueForcePair VFP = Values.lookup(std::make_pair(RegIdx, ParentVNI->id)); in transferValues()
890 if (BlockStart == ParentVNI->def) { in transferValues()
892 assert(ParentVNI->isPHIDef() && "Non-phi defined at block start?"); in transferValues()
1028 for (const VNInfo *ParentVNI : Edit->getParent().valnos) { in finish() local
1029 if (ParentVNI->isUnused()) in finish()
1031 unsigned RegIdx = RegAssign.lookup(ParentVNI->def); in finish()
1032 defValue(RegIdx, ParentVNI, ParentVNI->def); in finish()
1036 if (Edit->didRematerialize(ParentVNI)) in finish()
1038 forceRecompute(i, ParentVNI); in finish()