Lines Matching refs:SU

78   SUnit *SU = &SUnits.back();
83 SU->SchedulingPref = Sched::None;
85 SU->SchedulingPref = TLI.getSchedulingPreference(N);
86 return SU;
90 SUnit *SU = newSUnit(Old->getNode());
91 SU->OrigNode = Old->OrigNode;
92 SU->Latency = Old->Latency;
93 SU->isVRegCycle = Old->isVRegCycle;
94 SU->isCall = Old->isCall;
95 SU->isCallOp = Old->isCallOp;
96 SU->isTwoAddress = Old->isTwoAddress;
97 SU->isCommutable = Old->isCommutable;
98 SU->hasPhysRegDefs = Old->hasPhysRegDefs;
99 SU->hasPhysRegClobbers = Old->hasPhysRegClobbers;
100 SU->isScheduleHigh = Old->isScheduleHigh;
101 SU->isScheduleLow = Old->isScheduleLow;
102 SU->SchedulingPref = Old->SchedulingPref;
104 return SU;
406 SUnit *SU = CallSUnits.pop_back_val();
407 for (const SDNode *SUNode = SU->getNode(); SUNode;
427 SUnit *SU = &SUnits[su];
428 SDNode *MainNode = SU->getNode();
435 SU->isTwoAddress = true;
440 SU->isCommutable = true;
444 for (SDNode *N = SU->getNode(); N; N = N->getGluedNode()) {
447 SU->hasPhysRegClobbers = true;
452 SU->hasPhysRegDefs = true;
460 if (OpSU == SU) continue; // In the same group.
491 ST.adjustSchedDependency(OpSU, SU, Dep);
494 if (!SU->addPred(Dep) && !Dep.isCtrl() && OpSU->NumRegDefsLeft > 1) {
558 ScheduleDAGSDNodes::RegDefIter::RegDefIter(const SUnit *SU,
560 : SchedDAG(SD), Node(SU->getNode()), DefIdx(0), NodeNumDefs(0) {
583 void ScheduleDAGSDNodes::InitNumRegDefsLeft(SUnit *SU) {
584 assert(SU->NumRegDefsLeft == 0 && "expect a new node");
585 for (RegDefIter I(SU, this); I.IsValid(); I.Advance()) {
586 assert(SU->NumRegDefsLeft < USHRT_MAX && "overflow is ok but unexpected");
587 ++SU->NumRegDefsLeft;
591 void ScheduleDAGSDNodes::computeLatency(SUnit *SU) {
592 SDNode *N = SU->getNode();
598 SU->Latency = 0;
604 SU->Latency = 1;
611 SU->Latency = HighLatencyCycles;
613 SU->Latency = 1;
619 SU->Latency = 0;
620 for (SDNode *N = SU->getNode(); N; N = N->getGluedNode())
622 SU->Latency += TII->getInstrLatency(InstrItins, N);
652 void ScheduleDAGSDNodes::dumpNode(const SUnit *SU) const {
654 if (!SU->getNode()) {
659 SU->getNode()->dump(DAG);
662 for (SDNode *N = SU->getNode()->getGluedNode(); N; N = N->getGluedNode())
676 if (SUnit *SU = Sequence[i])
677 SU->dump(this);
758 EmitPhysRegCopy(SUnit *SU, DenseMap<SUnit*, unsigned> &VRBaseMap,
760 for (SUnit::const_pred_iterator I = SU->Preds.begin(), E = SU->Preds.end();
769 for (SUnit::const_succ_iterator II = SU->Succs.begin(),
770 EE = SU->Succs.end(); II != EE; ++II) {
782 unsigned VRBase = MRI.createVirtualRegister(SU->CopyDstRC);
783 bool isNew = VRBaseMap.insert(std::make_pair(SU, VRBase)).second;
818 SUnit *SU = Sequence[i];
819 if (!SU) {
827 if (!SU->getNode()) {
829 EmitPhysRegCopy(SU, CopyVRBaseMap, InsertPos);
834 for (SDNode *N = SU->getNode()->getGluedNode(); N; N = N->getGluedNode())
838 Emitter.EmitNode(GluedNodes.back(), SU->OrigNode != SU, SU->isCloned,
845 Emitter.EmitNode(SU->getNode(), SU->OrigNode != SU, SU->isCloned,
849 ProcessSourceNode(SU->getNode(), DAG, Emitter, VRBaseMap, Orders,