Lines Matching refs:VNI
318 VNInfo *VNI = LR->createDeadDef(Begin, getVNInfoAllocator()); in computeLiveInRegUnits() local
319 (void)VNI; in computeLiveInRegUnits()
320 DEBUG(dbgs() << ' ' << PrintRegUnit(Unit, TRI) << '#' << VNI->id); in computeLiveInRegUnits()
337 for (auto VNI : VNIs) { in createSegmentsForValues() local
338 if (VNI->isUnused()) in createSegmentsForValues()
340 SlotIndex Def = VNI->def; in createSegmentsForValues()
341 LR.addSegment(LiveRange::Segment(Def, Def.getDeadSlot(), VNI)); in createSegmentsForValues()
358 VNInfo *VNI = WorkList.back().second; in extendSegmentsToUses() local
365 assert(ExtVNI == VNI && "Unexpected existing value number"); in extendSegmentsToUses()
368 if (!VNI->isPHIDef() || VNI->def != BlockStart || in extendSegmentsToUses()
369 !UsedPHIs.insert(VNI).second) in extendSegmentsToUses()
385 LR.addSegment(LiveRange::Segment(BlockStart, Idx, VNI)); in extendSegmentsToUses()
392 assert(OldRange.getVNInfoBefore(Stop) == VNI && in extendSegmentsToUses()
394 WorkList.push_back(std::make_pair(Stop, VNI)); in extendSegmentsToUses()
425 VNInfo *VNI = LRQ.valueIn(); in shrinkToUses() local
426 if (!VNI) { in shrinkToUses()
440 WorkList.push_back(std::make_pair(Idx, VNI)); in shrinkToUses()
460 for (auto VNI : LI.valnos) { in computeDeadValues() local
461 if (VNI->isUnused()) in computeDeadValues()
463 SlotIndex Def = VNI->def; in computeDeadValues()
470 if ((I == LI.begin() || std::prev(I)->end < Def) && !VNI->isPHIDef()) { in computeDeadValues()
478 if (VNI->isPHIDef()) { in computeDeadValues()
480 VNI->markUnused(); in computeDeadValues()
526 VNInfo *VNI = LRQ.valueIn(); in shrinkToUses() local
529 if (!VNI) in shrinkToUses()
537 WorkList.push_back(std::make_pair(Idx, VNI)); in shrinkToUses()
549 for (auto VNI : SR.valnos) { in shrinkToUses() local
550 if (VNI->isUnused()) in shrinkToUses()
552 const LiveRange::Segment *Segment = SR.getSegmentContaining(VNI->def); in shrinkToUses()
554 if (Segment->end != VNI->def.getDeadSlot()) in shrinkToUses()
556 if (VNI->isPHIDef()) { in shrinkToUses()
558 VNI->markUnused(); in shrinkToUses()
560 DEBUG(dbgs() << "Dead PHI at " << VNI->def << " may separate interval\n"); in shrinkToUses()
578 VNInfo *VNI = LRQ.valueOutOrDead(); in pruneValue() local
579 if (!VNI) in pruneValue()
613 if (LRQ.valueIn() != VNI) { in pruneValue()
794 LiveIntervals::hasPHIKill(const LiveInterval &LI, const VNInfo *VNI) const { in hasPHIKill()
804 if (VNI == LI.getVNInfoBefore(Indexes->getMBBEndIdx(*PI))) in hasPHIKill()
1315 VNInfo *VNI = LR.getNextValue(instrIdx.getRegSlot(), VNInfoAllocator); in repairOldRegInRange() local
1317 instrIdx.getDeadSlot(), VNI); in repairOldRegInRange()
1320 VNInfo *VNI = LR.getNextValue(instrIdx.getRegSlot(), VNInfoAllocator); in repairOldRegInRange() local
1321 LiveRange::Segment S(instrIdx.getRegSlot(), lastUseIdx, VNI); in repairOldRegInRange()
1397 if (VNInfo *VNI = LR->getVNInfoAt(Pos)) in removePhysRegDefAt() local
1398 LR->removeValNo(VNI); in removePhysRegDefAt()
1403 VNInfo *VNI = LI.getVNInfoAt(Pos); in removeVRegDefAt() local
1404 if (VNI == nullptr) in removeVRegDefAt()
1406 LI.removeValNo(VNI); in removeVRegDefAt()