Lines Matching refs:ParentVNI

346                               const VNInfo *ParentVNI,  in defValue()  argument
348 assert(ParentVNI && "Mapping NULL value"); in defValue()
350 assert(Edit->getParent().getVNInfoAt(Idx) == ParentVNI && "Bad Parent VNI"); in defValue()
358 Values.insert(std::make_pair(std::make_pair(RegIdx, ParentVNI->id), in defValue()
381 void SplitEditor::forceRecompute(unsigned RegIdx, const VNInfo *ParentVNI) { in forceRecompute() argument
382 assert(ParentVNI && "Mapping NULL value"); in forceRecompute()
383 ValueForcePair &VFP = Values[std::make_pair(RegIdx, ParentVNI->id)]; in forceRecompute()
402 VNInfo *ParentVNI, in defFromParent() argument
415 LiveRangeEdit::Remat RM(ParentVNI); in defFromParent()
429 VNInfo *VNI = defValue(RegIdx, ParentVNI, Def); in defFromParent()
457 VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(Idx); in enterIntvBefore() local
458 if (!ParentVNI) { in enterIntvBefore()
462 DEBUG(dbgs() << ": valno " << ParentVNI->id << '\n'); in enterIntvBefore()
466 VNInfo *VNI = defFromParent(OpenIdx, ParentVNI, Idx, *MI->getParent(), MI); in enterIntvBefore()
474 VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(Idx); in enterIntvAfter() local
475 if (!ParentVNI) { in enterIntvAfter()
479 DEBUG(dbgs() << ": valno " << ParentVNI->id << '\n'); in enterIntvAfter()
483 VNInfo *VNI = defFromParent(OpenIdx, ParentVNI, Idx, *MI->getParent(), in enterIntvAfter()
493 VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(Last); in enterIntvAtEnd() local
494 if (!ParentVNI) { in enterIntvAtEnd()
498 DEBUG(dbgs() << ": valno " << ParentVNI->id); in enterIntvAtEnd()
499 VNInfo *VNI = defFromParent(OpenIdx, ParentVNI, Last, MBB, in enterIntvAtEnd()
524 VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(Boundary); in leaveIntvAfter() local
525 if (!ParentVNI) { in leaveIntvAfter()
529 DEBUG(dbgs() << ": valno " << ParentVNI->id << '\n'); in leaveIntvAfter()
537 if (SpillMode && !SlotIndex::isSameInstr(ParentVNI->def, Idx) && in leaveIntvAfter()
539 forceRecompute(0, ParentVNI); in leaveIntvAfter()
540 defFromParent(0, ParentVNI, Idx, *MI->getParent(), MI); in leaveIntvAfter()
544 VNInfo *VNI = defFromParent(0, ParentVNI, Boundary, *MI->getParent(), in leaveIntvAfter()
555 VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(Idx); in leaveIntvBefore() local
556 if (!ParentVNI) { in leaveIntvBefore()
560 DEBUG(dbgs() << ": valno " << ParentVNI->id << '\n'); in leaveIntvBefore()
564 VNInfo *VNI = defFromParent(0, ParentVNI, Idx, *MI->getParent(), MI); in leaveIntvBefore()
573 VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(Start); in leaveIntvAtTop() local
574 if (!ParentVNI) { in leaveIntvAtTop()
579 VNInfo *VNI = defFromParent(0, ParentVNI, Start, MBB, in leaveIntvAtTop()
588 const VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(Start); in overlapIntv() local
589 assert(ParentVNI == Edit->getParent().getVNInfoAt(End.getPrevSlot()) && in overlapIntv()
595 if (ParentVNI) in overlapIntv()
596 forceRecompute(0, ParentVNI); in overlapIntv()
719 VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(VNI->def); in hoistCopiesForSize() local
720 assert(ParentVNI && "Parent not live at complement def"); in hoistCopiesForSize()
724 if (Edit->didRematerialize(ParentVNI)) in hoistCopiesForSize()
728 DomPair &Dom = NearestDom[ParentVNI->id]; in hoistCopiesForSize()
733 if (VNI->def == ParentVNI->def) { in hoistCopiesForSize()
740 if (Values.lookup(std::make_pair(0, ParentVNI->id)).getPointer()) { in hoistCopiesForSize()
765 << " for parent " << ParentVNI->id << '@' << ParentVNI->def in hoistCopiesForSize()
776 VNInfo *ParentVNI = Parent->getValNumInfo(i); in hoistCopiesForSize() local
777 MachineBasicBlock *DefMBB = LIS.getMBBFromIndex(ParentVNI->def); in hoistCopiesForSize()
782 defFromParent(0, ParentVNI, Last, *Dom.first, in hoistCopiesForSize()
792 VNInfo *ParentVNI = Edit->getParent().getVNInfoAt(VNI->def); in hoistCopiesForSize() local
793 const DomPair &Dom = NearestDom[ParentVNI->id]; in hoistCopiesForSize()
797 forceRecompute(0, ParentVNI); in hoistCopiesForSize()
811 VNInfo *ParentVNI = ParentI->valno; in transferValues() local
836 ValueForcePair VFP = Values.lookup(std::make_pair(RegIdx, ParentVNI->id)); in transferValues()
880 if (BlockStart == ParentVNI->def) { in transferValues()
882 assert(ParentVNI->isPHIDef() && "Non-phi defined at block start?"); in transferValues()
1027 const VNInfo *ParentVNI = *I; in finish() local
1028 if (ParentVNI->isUnused()) in finish()
1030 unsigned RegIdx = RegAssign.lookup(ParentVNI->def); in finish()
1031 VNInfo *VNI = defValue(RegIdx, ParentVNI, ParentVNI->def); in finish()
1032 VNI->setIsPHIDef(ParentVNI->isPHIDef()); in finish()
1033 VNI->setCopy(ParentVNI->getCopy()); in finish()
1037 if (Edit->didRematerialize(ParentVNI)) in finish()
1039 forceRecompute(i, ParentVNI); in finish()