Lines Matching refs:getSUnit
295 return Source->getInstr()->isPHI() || Dep.getSUnit()->getInstr()->isPHI(); in isBackedge()
303 !Dep.getSUnit()->getInstr()->isPHI()); in isOrder()
314 return Dep.getSUnit()->Latency; in getLatency()
315 if (Dep.getSUnit()->getInstr()->isPHI()) in getLatency()
956 SUnit *SuccSU = SI.getSUnit(); in isSuccOrder()
1100 SUnit *SU = getSUnit(UseMI); in updatePhiDependences()
1119 SUnit *SU = getSUnit(DefMI); in updatePhiDependences()
1140 MachineInstr *PMI = PI.getSUnit()->getInstr(); in updatePhiDependences()
1174 SUnit *DefSU = getSUnit(DefMI); in changeDependences()
1181 SUnit *LastSU = getSUnit(LastMI); in changeDependences()
1192 if (P->getSUnit() == DefSU) in changeDependences()
1195 Topo.RemovePred(&I, Deps[i].getSUnit()); in changeDependences()
1201 if (P.getSUnit() == &I && P.getKind() == SDep::Order) in changeDependences()
1204 Topo.RemovePred(LastSU, Deps[i].getSUnit()); in changeDependences()
1308 unsigned NumCycles = getSUnit(MI)->Latency; in calculateResMII()
1388 SUnit *TargetSU = D.getSUnit(); in swapAntiDependences()
1408 if (SI.getSUnit()->isBoundaryNode() || in createAdjacencyStructure()
1409 (SI.getKind() == SDep::Anti && !SI.getSUnit()->getInstr()->isPHI())) in createAdjacencyStructure()
1411 int N = SI.getSUnit()->NodeNum; in createAdjacencyStructure()
1423 if (PI.getKind() == SDep::Order && PI.getSUnit()->getInstr()->mayLoad()) { in createAdjacencyStructure()
1424 int N = PI.getSUnit()->NodeNum; in createAdjacencyStructure()
1547 SUnit *pred = IP->getSUnit(); in computeNodeFunctions()
1566 SUnit *succ = IS->getSUnit(); in computeNodeFunctions()
1601 if (S && S->count(PI->getSUnit()) == 0) in pred_L()
1605 if (NodeOrder.count(PI->getSUnit()) == 0) in pred_L()
1606 Preds.insert(PI->getSUnit()); in pred_L()
1614 if (S && S->count(IS->getSUnit()) == 0) in pred_L()
1616 if (NodeOrder.count(IS->getSUnit()) == 0) in pred_L()
1617 Preds.insert(IS->getSUnit()); in pred_L()
1634 if (S && S->count(SI->getSUnit()) == 0) in succ_L()
1638 if (NodeOrder.count(SI->getSUnit()) == 0) in succ_L()
1639 Succs.insert(SI->getSUnit()); in succ_L()
1646 if (S && S->count(PI->getSUnit()) == 0) in succ_L()
1648 if (NodeOrder.count(PI->getSUnit()) == 0) in succ_L()
1649 Succs.insert(PI->getSUnit()); in succ_L()
1671 FoundPath |= computePath(SI.getSUnit(), Path, DestNodes, Exclude, Visited); in computePath()
1675 computePath(PI.getSUnit(), Path, DestNodes, Exclude, Visited); in computePath()
1890 SUnit *Successor = SI.getSUnit(); in addConnectedNodes()
1895 SUnit *Predecessor = PI.getSUnit(); in addConnectedNodes()
1955 if (SI.getSUnit() == Inst2 && SI.getKind() == SDep::Data) in hasDataDependence()
2024 if (Nodes.count(I.getSUnit()) == 0) in computeNodeOrder()
2026 if (NodeOrder.count(I.getSUnit()) != 0) in computeNodeOrder()
2030 R.insert(I.getSUnit()); in computeNodeOrder()
2036 if (Nodes.count(I.getSUnit()) == 0) in computeNodeOrder()
2038 if (NodeOrder.count(I.getSUnit()) != 0) in computeNodeOrder()
2040 R.insert(I.getSUnit()); in computeNodeOrder()
2074 if (Nodes.count(I.getSUnit()) == 0) in computeNodeOrder()
2076 if (NodeOrder.count(I.getSUnit()) != 0) in computeNodeOrder()
2080 R.insert(I.getSUnit()); in computeNodeOrder()
2086 if (Nodes.count(I.getSUnit()) == 0) in computeNodeOrder()
2088 if (NodeOrder.count(I.getSUnit()) != 0) in computeNodeOrder()
2090 R.insert(I.getSUnit()); in computeNodeOrder()
2235 unsigned StageNum = Schedule.stageScheduled(getSUnit(CI->getInstr())); in generatePipelinedLoop()
2316 if (Schedule.isScheduledAtStage(getSUnit(&*BBI), (unsigned)StageNum)) { in generateProlog()
2395 if (Schedule.isScheduledAtStage(getSUnit(In), StageNum)) { in generateEpilog()
2506 int StageScheduled = Schedule.stageScheduled(getSUnit(&*BBI)); in generateExistingPhis()
2508 Schedule.stageScheduled(getSUnit(MRI.getVRegDef(LoopVal))); in generateExistingPhis()
2566 int PhiStage = Schedule.stageScheduled(getSUnit(InstOp1)); in generateExistingPhis()
2572 int PhiOpStage = Schedule.stageScheduled(getSUnit(InstOp1)); in generateExistingPhis()
2739 int StageScheduled = Schedule.stageScheduled(getSUnit(&*BBI)); in generatePhis()
3107 InstrChanges.find(getSUnit(OldMI)); in cloneAndChangeInstr()
3115 if (Schedule.stageScheduled(getSUnit(LoopDef)) > (signed)InstStageNum) in cloneAndChangeInstr()
3146 int DefStageNum = Schedule.stageScheduled(getSUnit(Def)); in updateInstruction()
3226 (unsigned)Schedule.stageScheduled(getSUnit(MRI.getVRegDef(PhiDef))); in rewritePhiValues()
3228 (unsigned)Schedule.stageScheduled(getSUnit(MRI.getVRegDef(LoopVal))); in rewritePhiValues()
3251 int StagePhi = Schedule.stageScheduled(getSUnit(Phi)) + PhiNum; in rewriteScheduledInstr()
3270 SUnit *OrigMISU = getSUnit(OrigInstr->second); in rewriteScheduledInstr()
3276 int CyclePhi = Schedule.cycleScheduled(getSUnit(Phi)); in rewriteScheduledInstr()
3362 SUnit *SU = getSUnit(MI); in applyInstrChange()
3372 int DefStageNum = Schedule.stageScheduled(getSUnit(LoopDef)); in applyInstrChange()
3373 int DefCycleNum = Schedule.cycleScheduled(getSUnit(LoopDef)); in applyInstrChange()
3410 MachineInstr *DI = Dep.getSUnit()->getInstr(); in isLoopCarriedOrder()
3513 SUnit *PrevSU = Cur.getSUnit(); in earliestCycleInChain()
3536 SUnit *SuccSU = Cur.getSUnit(); in latestCycleInChain()
3556 if (DAG->isBackedge(SU, P) && P.getSUnit()->getInstr()->isPHI()) in multipleIterations()
3557 for (auto &S : P.getSUnit()->Succs) in multipleIterations()
3558 if (S.getKind() == SDep::Order && S.getSUnit()->getInstr()->isPHI()) in multipleIterations()
3559 return P.getSUnit(); in multipleIterations()
3579 if (Dep.getSUnit() == I) { in computeStart()
3582 DAG->getDistance(Dep.getSUnit(), SU, Dep) * II; in computeStart()
3590 DAG->getDistance(SU, Dep.getSUnit(), Dep) * II; in computeStart()
3597 if (BE && Dep.getSUnit() == BE && !SU->getInstr()->isPHI() && in computeStart()
3602 if (SU->Succs[i].getSUnit() == I) { in computeStart()
3606 DAG->getDistance(SU, Dep.getSUnit(), Dep) * II; in computeStart()
3614 DAG->getDistance(Dep.getSUnit(), SU, Dep) * II; in computeStart()
3690 if (S.getSUnit() == *I && stageScheduled(*I) == StageInst1) { in orderDependence()
3695 if (cycleScheduled(SU) != cycleScheduled(S.getSUnit())) { in orderDependence()
3707 if (P.getSUnit() == *I && stageScheduled(*I) == StageInst1) { in orderDependence()
3712 if (cycleScheduled(SU) != cycleScheduled(P.getSUnit())) { in orderDependence()
3770 SUnit *DefSU = SSD->getSUnit(&Phi); in isLoopCarried()
3777 SUnit *UseSU = SSD->getSUnit(MRI.getVRegDef(LoopVal)); in isLoopCarried()
3832 if (stageScheduled(SI.getSUnit()) != StageDef) in isValidSchedule()
3872 SUnit *SUnitUse = SSD->getSUnit(UseMI); in finalizeSchedule()