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()
727 ValSEndInst->findRegisterUseOperandIdx(IntB.reg(), /*TRI=*/nullptr, true); in adjustCopiesBackFrom()
733 CopyMI->substituteRegister(IntA.reg(), IntB.reg(), 0, *TRI); in adjustCopiesBackFrom()
754 LiveInterval &IntB, in hasOtherReachingDefs() argument
764 LiveInterval::iterator BI = llvm::upper_bound(IntB, ASeg.start); in hasOtherReachingDefs()
765 if (BI != IntB.begin()) in hasOtherReachingDefs()
767 for (; BI != IntB.end() && ASeg.end >= BI->start; ++BI) { in hasOtherReachingDefs()
811 LiveInterval &IntB = in removeCopyByCommutingDef() local
837 VNInfo *BValNo = IntB.getVNInfoAt(CopyIdx); in removeCopyByCommutingDef()
873 if (NewReg != IntB.reg() || !IntB.Query(AValNo->def).isKill()) in removeCopyByCommutingDef()
878 if (hasOtherReachingDefs(IntA, IntB, AValNo, BValNo)) in removeCopyByCommutingDef()
905 if (IntA.reg().isVirtual() && IntB.reg().isVirtual() && in removeCopyByCommutingDef()
906 !MRI->constrainRegClass(IntB.reg(), MRI->getRegClass(IntA.reg()))) in removeCopyByCommutingDef()
951 if (UseMI->getOperand(0).getReg() != IntB.reg() || in removeCopyByCommutingDef()
958 VNInfo *DVNI = IntB.getVNInfoAt(DefIdx); in removeCopyByCommutingDef()
963 BValNo = IntB.MergeValueNumberInto(DVNI, BValNo); in removeCopyByCommutingDef()
964 for (LiveInterval::SubRange &S : IntB.subranges()) { in removeCopyByCommutingDef()
980 if (IntA.hasSubRanges() || IntB.hasSubRanges()) { in removeCopyByCommutingDef()
984 } else if (!IntB.hasSubRanges()) { in removeCopyByCommutingDef()
985 LaneBitmask Mask = MRI->getMaxLaneMaskForVReg(IntB.reg()); in removeCopyByCommutingDef()
986 IntB.createSubRangeFrom(Allocator, Mask, IntB); in removeCopyByCommutingDef()
1003 IntB.refineSubRanges( in removeCopyByCommutingDef()
1020 for (LiveInterval::SubRange &SB : IntB.subranges()) { in removeCopyByCommutingDef()
1030 auto P = addSegmentsWithValNo(IntB, BValNo, IntA, AValNo); in removeCopyByCommutingDef()
1032 LLVM_DEBUG(dbgs() << "\t\textended: " << IntB << '\n'); in removeCopyByCommutingDef()
1105 LiveInterval &IntB = in removePartialRedundancy() local
1116 if (IntB.overlaps(LIS->getMBBStartIdx(&MBB), CopyIdx)) in removePartialRedundancy()
1132 DefMI->getOperand(1).getReg() != IntB.reg() || in removePartialRedundancy()
1141 for (auto *VNI : IntB.valnos) { in removePartialRedundancy()
1180 if (IntB.overlaps(InsPosIdx, LIS->getMBBEndIdx(CopyLeftBB))) in removePartialRedundancy()
1189 TII->get(TargetOpcode::COPY), IntB.reg()) in removePartialRedundancy()
1193 IntB.createDeadDef(NewCopyIdx, LIS->getVNInfoAllocator()); in removePartialRedundancy()
1194 for (LiveInterval::SubRange &SR : IntB.subranges()) in removePartialRedundancy()
1217 VNInfo *BValNo = IntB.Query(CopyIdx).valueOutOrDead(); in removePartialRedundancy()
1218 LIS->pruneValue(*static_cast<LiveRange *>(&IntB), CopyIdx.getRegSlot(), in removePartialRedundancy()
1226 for (MachineOperand &MO : MRI->use_nodbg_operands(IntB.reg())) { in removePartialRedundancy()
1229 if (!IntB.liveAt(UseIdx)) in removePartialRedundancy()
1235 LIS->extendToIndices(IntB, EndPoints); in removePartialRedundancy()
1238 for (LiveInterval::SubRange &SR : IntB.subranges()) { in removePartialRedundancy()
1259 IntB.computeSubRangeUndefs(Undefs, SR.LaneMask, *MRI, in removePartialRedundancy()
1264 shrinkToUses(&IntB); in removePartialRedundancy()