Lines Matching defs:IntA

279     /// other than BValNo val# that can reach uses of AValno val# of IntA.
280 bool hasOtherReachingDefs(LiveInterval &IntA, LiveInterval &IntB,
620 LiveInterval &IntA =
626 // We have a non-trivially-coalescable copy with IntA being the source and
628 // source value number (in IntA) is defined by a copy from B, see if we can
653 LiveInterval::iterator AS = IntA.FindSegmentContaining(CopyUseIdx);
655 if (AS == IntA.end()) return false;
733 CopyMI->substituteRegister(IntA.reg(), IntB.reg(), 0, *TRI);
738 for (LiveInterval::SubRange &S : IntA.subranges()) {
747 shrinkToUses(&IntA);
753 bool RegisterCoalescer::hasOtherReachingDefs(LiveInterval &IntA,
759 if (LIS->hasPHIKill(IntA, AValNo))
762 for (LiveRange::Segment &ASeg : IntA.segments) {
809 LiveInterval &IntA =
814 // We found a non-trivially-coalescable copy with IntA being the source and
816 // source value number (in IntA) is defined by a commutable instruction and
841 VNInfo *AValNo = IntA.getVNInfoAt(CopyIdx.getRegSlot(true));
852 int DefIdx = DefMI->findRegisterDefOperandIdx(IntA.reg(), /*TRI=*/nullptr);
878 if (hasOtherReachingDefs(IntA, IntB, AValNo, BValNo))
881 // If some of the uses of IntA.reg is already coalesced away, return false.
883 for (MachineOperand &MO : MRI->use_nodbg_operands(IntA.reg())) {
887 LiveInterval::iterator US = IntA.FindSegmentContaining(UseIdx);
888 if (US == IntA.end() || US->valno != AValNo)
905 if (IntA.reg().isVirtual() && IntB.reg().isVirtual() &&
906 !MRI->constrainRegClass(IntB.reg(), MRI->getRegClass(IntA.reg())))
924 // Update uses of IntA of the specific Val# with IntB.
926 llvm::make_early_inc_range(MRI->use_operands(IntA.reg()))) {
937 LiveInterval::iterator US = IntA.FindSegmentContaining(UseIdx);
938 assert(US != IntA.end() && "Use must be live");
976 // Extend BValNo by merging in IntA live segments of AValNo. Val# definition
980 if (IntA.hasSubRanges() || IntB.hasSubRanges()) {
981 if (!IntA.hasSubRanges()) {
982 LaneBitmask Mask = MRI->getMaxLaneMaskForVReg(IntA.reg());
983 IntA.createSubRangeFrom(Allocator, Mask, IntA);
991 for (LiveInterval::SubRange &SA : IntA.subranges()) {
1017 // Go over all subranges of IntB that have not been covered by IntA,
1019 // IntA has undef lanes that are defined in IntB.
1030 auto P = addSegmentsWithValNo(IntB, BValNo, IntA, AValNo);
1034 LIS->removeVRegDefAt(IntA, AValNo->def);
1036 LLVM_DEBUG(dbgs() << "\t\ttrimmed: " << IntA << '\n');
1103 LiveInterval &IntA =
1110 VNInfo *AValNo = IntA.getVNInfoAt(CopyIdx);
1124 VNInfo *PVal = IntA.getVNInfoBefore(LIS->getMBBEndIdx(Pred));
1131 if (DefMI->getOperand(0).getReg() != IntA.reg() ||
1161 // reverse copy, CopyMI can be removed trivially if only IntA/IntB is updated.
1163 // update IntA/IntB.
1190 .addReg(IntA.reg());
1266 // Finally, update the live-range of IntA.
1267 shrinkToUses(&IntA);