Lines Matching refs:IntB
280 bool hasOtherReachingDefs(LiveInterval &IntA, LiveInterval &IntB,
622 LiveInterval &IntB = in adjustCopiesBackFrom() local
642 LiveInterval::iterator BS = IntB.FindSegmentContaining(CopyIdx); in adjustCopiesBackFrom()
643 if (BS == IntB.end()) return false; in adjustCopiesBackFrom()
667 IntB.FindSegmentContaining(AValNo->def.getPrevSlot()); in adjustCopiesBackFrom()
668 if (ValS == IntB.end()) in adjustCopiesBackFrom()
683 LLVM_DEBUG(dbgs() << "Extending: " << printReg(IntB.reg(), TRI)); in adjustCopiesBackFrom()
694 IntB.addSegment(LiveInterval::Segment(FillerStart, FillerEnd, BValNo)); in adjustCopiesBackFrom()
698 IntB.MergeValueNumberInto(BValNo, ValS->valno); in adjustCopiesBackFrom()
701 for (LiveInterval::SubRange &S : IntB.subranges()) { in adjustCopiesBackFrom()
722 LLVM_DEBUG(dbgs() << " result = " << IntB << '\n'); in adjustCopiesBackFrom()
726 int UIdx = ValSEndInst->findRegisterUseOperandIdx(IntB.reg(), true); in adjustCopiesBackFrom()
732 CopyMI->substituteRegister(IntA.reg(), IntB.reg(), 0, *TRI); in adjustCopiesBackFrom()
753 LiveInterval &IntB, in hasOtherReachingDefs() argument
763 LiveInterval::iterator BI = llvm::upper_bound(IntB, ASeg.start); in hasOtherReachingDefs()
764 if (BI != IntB.begin()) in hasOtherReachingDefs()
766 for (; BI != IntB.end() && ASeg.end >= BI->start; ++BI) { in hasOtherReachingDefs()
810 LiveInterval &IntB = in removeCopyByCommutingDef() local
836 VNInfo *BValNo = IntB.getVNInfoAt(CopyIdx); in removeCopyByCommutingDef()
872 if (NewReg != IntB.reg() || !IntB.Query(AValNo->def).isKill()) in removeCopyByCommutingDef()
877 if (hasOtherReachingDefs(IntA, IntB, AValNo, BValNo)) in removeCopyByCommutingDef()
904 if (IntA.reg().isVirtual() && IntB.reg().isVirtual() && in removeCopyByCommutingDef()
905 !MRI->constrainRegClass(IntB.reg(), MRI->getRegClass(IntA.reg()))) in removeCopyByCommutingDef()
950 if (UseMI->getOperand(0).getReg() != IntB.reg() || in removeCopyByCommutingDef()
957 VNInfo *DVNI = IntB.getVNInfoAt(DefIdx); in removeCopyByCommutingDef()
962 BValNo = IntB.MergeValueNumberInto(DVNI, BValNo); in removeCopyByCommutingDef()
963 for (LiveInterval::SubRange &S : IntB.subranges()) { in removeCopyByCommutingDef()
979 if (IntA.hasSubRanges() || IntB.hasSubRanges()) { in removeCopyByCommutingDef()
983 } else if (!IntB.hasSubRanges()) { in removeCopyByCommutingDef()
984 LaneBitmask Mask = MRI->getMaxLaneMaskForVReg(IntB.reg()); in removeCopyByCommutingDef()
985 IntB.createSubRangeFrom(Allocator, Mask, IntB); in removeCopyByCommutingDef()
1002 IntB.refineSubRanges( in removeCopyByCommutingDef()
1019 for (LiveInterval::SubRange &SB : IntB.subranges()) { in removeCopyByCommutingDef()
1029 auto P = addSegmentsWithValNo(IntB, BValNo, IntA, AValNo); in removeCopyByCommutingDef()
1031 LLVM_DEBUG(dbgs() << "\t\textended: " << IntB << '\n'); in removeCopyByCommutingDef()
1104 LiveInterval &IntB = in removePartialRedundancy() local
1115 if (IntB.overlaps(LIS->getMBBStartIdx(&MBB), CopyIdx)) in removePartialRedundancy()
1131 DefMI->getOperand(1).getReg() != IntB.reg() || in removePartialRedundancy()
1140 for (auto *VNI : IntB.valnos) { in removePartialRedundancy()
1179 if (IntB.overlaps(InsPosIdx, LIS->getMBBEndIdx(CopyLeftBB))) in removePartialRedundancy()
1188 TII->get(TargetOpcode::COPY), IntB.reg()) in removePartialRedundancy()
1192 IntB.createDeadDef(NewCopyIdx, LIS->getVNInfoAllocator()); in removePartialRedundancy()
1193 for (LiveInterval::SubRange &SR : IntB.subranges()) in removePartialRedundancy()
1216 VNInfo *BValNo = IntB.Query(CopyIdx).valueOutOrDead(); in removePartialRedundancy()
1217 LIS->pruneValue(*static_cast<LiveRange *>(&IntB), CopyIdx.getRegSlot(), in removePartialRedundancy()
1225 for (MachineOperand &MO : MRI->use_nodbg_operands(IntB.reg())) { in removePartialRedundancy()
1228 if (!IntB.liveAt(UseIdx)) in removePartialRedundancy()
1234 LIS->extendToIndices(IntB, EndPoints); in removePartialRedundancy()
1237 for (LiveInterval::SubRange &SR : IntB.subranges()) { in removePartialRedundancy()
1258 IntB.computeSubRangeUndefs(Undefs, SR.LaneMask, *MRI, in removePartialRedundancy()
1263 shrinkToUses(&IntB); in removePartialRedundancy()