• Home
  • Raw
  • Download

Lines Matching refs:NodeNum

179   NodeNum2Index[SU->NodeNum] = SUnits.size();  in addUnit()
187 dbgs() << " SU(" << Cand.SU->NodeNum << ") " << getReasonStr(Cand.Reason); in traceCandidate()
237 if (TryCand.SU->NodeNum < Cand.SU->NodeNum) { in tryCandidateTopDown()
254 TryCand.IsLowLatency = DAG->IsLowLatencySU[SU->NodeNum]; in pickNode()
255 TryCand.LowLatencyOffset = DAG->LowLatencyOffset[SU->NodeNum]; in pickNode()
257 HasLowLatencyNonWaitedParent[NodeNum2Index[SU->NodeNum]]; in pickNode()
490 if (HasLowLatencyNonWaitedParent[NodeNum2Index[SU->NodeNum]]) in nodeScheduled()
493 if (DAG->IsLowLatencySU[SU->NodeNum]) { in nodeScheduled()
496 NodeNum2Index.find(Succ.getSUnit()->NodeNum); in nodeScheduled()
508 if (DAG->IsHighLatencySU[SU->NodeNum]) in finalizeUnits()
624 if (SU->NodeNum >= DAG->SUnits.size()) in isSUInBlock()
626 return CurrentBlocks[Node2CurrentBlock[SU->NodeNum]]->getID() == ID; in isSUInBlock()
634 if (DAG->IsHighLatencySU[SU->NodeNum]) { in colorHighLatenciesAlone()
635 CurrentColoring[SU->NodeNum] = NextReservedID++; in colorHighLatenciesAlone()
650 if (DAG->IsHighLatencySU[SU->NodeNum]) in colorHighLatenciesGroups()
666 if (DAG->IsHighLatencySU[SU->NodeNum]) { in colorHighLatenciesGroups()
686 FormingGroup.insert(SU->NodeNum); in colorHighLatenciesGroups()
690 FormingGroup.insert(SU->NodeNum); in colorHighLatenciesGroups()
692 CurrentColoring[SU->NodeNum] = ProposedColor; in colorHighLatenciesGroups()
715 if (CurrentColoring[SU->NodeNum]) { in colorComputeReservedDependencies()
716 CurrentTopDownReservedDependencyColoring[SU->NodeNum] = in colorComputeReservedDependencies()
717 CurrentColoring[SU->NodeNum]; in colorComputeReservedDependencies()
723 if (PredDep.isWeak() || Pred->NodeNum >= DAGSize) in colorComputeReservedDependencies()
725 if (CurrentTopDownReservedDependencyColoring[Pred->NodeNum] > 0) in colorComputeReservedDependencies()
726 SUColors.insert(CurrentTopDownReservedDependencyColoring[Pred->NodeNum]); in colorComputeReservedDependencies()
733 CurrentTopDownReservedDependencyColoring[SU->NodeNum] = in colorComputeReservedDependencies()
739 CurrentTopDownReservedDependencyColoring[SU->NodeNum] = Pos->second; in colorComputeReservedDependencies()
741 CurrentTopDownReservedDependencyColoring[SU->NodeNum] = in colorComputeReservedDependencies()
757 if (CurrentColoring[SU->NodeNum]) { in colorComputeReservedDependencies()
758 CurrentBottomUpReservedDependencyColoring[SU->NodeNum] = in colorComputeReservedDependencies()
759 CurrentColoring[SU->NodeNum]; in colorComputeReservedDependencies()
765 if (SuccDep.isWeak() || Succ->NodeNum >= DAGSize) in colorComputeReservedDependencies()
767 if (CurrentBottomUpReservedDependencyColoring[Succ->NodeNum] > 0) in colorComputeReservedDependencies()
768 SUColors.insert(CurrentBottomUpReservedDependencyColoring[Succ->NodeNum]); in colorComputeReservedDependencies()
775 CurrentBottomUpReservedDependencyColoring[SU->NodeNum] = in colorComputeReservedDependencies()
781 CurrentBottomUpReservedDependencyColoring[SU->NodeNum] = Pos->second; in colorComputeReservedDependencies()
783 CurrentBottomUpReservedDependencyColoring[SU->NodeNum] = in colorComputeReservedDependencies()
803 if (CurrentColoring[SU->NodeNum]) in colorAccordingToReservedDependencies()
806 SUColors.first = CurrentTopDownReservedDependencyColoring[SU->NodeNum]; in colorAccordingToReservedDependencies()
807 SUColors.second = CurrentBottomUpReservedDependencyColoring[SU->NodeNum]; in colorAccordingToReservedDependencies()
812 CurrentColoring[SU->NodeNum] = Pos->second; in colorAccordingToReservedDependencies()
814 CurrentColoring[SU->NodeNum] = NextNonReservedID; in colorAccordingToReservedDependencies()
829 if (CurrentColoring[SU->NodeNum] <= (int)DAGSize) in colorEndsAccordingToDependencies()
832 if (CurrentBottomUpReservedDependencyColoring[SU->NodeNum] > 0 || in colorEndsAccordingToDependencies()
833 CurrentTopDownReservedDependencyColoring[SU->NodeNum] > 0) in colorEndsAccordingToDependencies()
838 if (SuccDep.isWeak() || Succ->NodeNum >= DAGSize) in colorEndsAccordingToDependencies()
840 if (CurrentBottomUpReservedDependencyColoring[Succ->NodeNum] > 0 || in colorEndsAccordingToDependencies()
841 CurrentTopDownReservedDependencyColoring[Succ->NodeNum] > 0) in colorEndsAccordingToDependencies()
842 SUColors.insert(CurrentColoring[Succ->NodeNum]); in colorEndsAccordingToDependencies()
843 SUColorsPending.insert(PendingColoring[Succ->NodeNum]); in colorEndsAccordingToDependencies()
846 PendingColoring[SU->NodeNum] = *SUColors.begin(); in colorEndsAccordingToDependencies()
849 PendingColoring[SU->NodeNum] = NextNonReservedID++; in colorEndsAccordingToDependencies()
869 assert(i == SU->NodeNum); in colorForceConsecutiveOrderInGroup()
875 if (CurrentColoring[SU->NodeNum] <= (int)DAGSize) in colorForceConsecutiveOrderInGroup()
895 if (CurrentColoring[SU->NodeNum] <= (int)DAGSize) in colorMergeConstantLoadsNextGroup()
900 if (SU->Preds.size() > 0 && !DAG->IsLowLatencySU[SU->NodeNum]) in colorMergeConstantLoadsNextGroup()
905 if (SuccDep.isWeak() || Succ->NodeNum >= DAGSize) in colorMergeConstantLoadsNextGroup()
907 SUColors.insert(CurrentColoring[Succ->NodeNum]); in colorMergeConstantLoadsNextGroup()
910 CurrentColoring[SU->NodeNum] = *SUColors.begin(); in colorMergeConstantLoadsNextGroup()
921 if (CurrentColoring[SU->NodeNum] <= (int)DAGSize) in colorMergeIfPossibleNextGroup()
926 if (SuccDep.isWeak() || Succ->NodeNum >= DAGSize) in colorMergeIfPossibleNextGroup()
928 SUColors.insert(CurrentColoring[Succ->NodeNum]); in colorMergeIfPossibleNextGroup()
931 CurrentColoring[SU->NodeNum] = *SUColors.begin(); in colorMergeIfPossibleNextGroup()
942 if (CurrentColoring[SU->NodeNum] <= (int)DAGSize) in colorMergeIfPossibleNextGroupOnlyForReserved()
947 if (SuccDep.isWeak() || Succ->NodeNum >= DAGSize) in colorMergeIfPossibleNextGroupOnlyForReserved()
949 SUColors.insert(CurrentColoring[Succ->NodeNum]); in colorMergeIfPossibleNextGroupOnlyForReserved()
952 CurrentColoring[SU->NodeNum] = *SUColors.begin(); in colorMergeIfPossibleNextGroupOnlyForReserved()
962 unsigned color = CurrentColoring[SU->NodeNum]; in colorMergeIfPossibleSmallGroupsToNextGroup()
973 unsigned color = CurrentColoring[SU->NodeNum]; in colorMergeIfPossibleSmallGroupsToNextGroup()
976 if (CurrentColoring[SU->NodeNum] <= (int)DAGSize) in colorMergeIfPossibleSmallGroupsToNextGroup()
984 if (SuccDep.isWeak() || Succ->NodeNum >= DAGSize) in colorMergeIfPossibleSmallGroupsToNextGroup()
986 SUColors.insert(CurrentColoring[Succ->NodeNum]); in colorMergeIfPossibleSmallGroupsToNextGroup()
990 CurrentColoring[SU->NodeNum] = *SUColors.begin(); in colorMergeIfPossibleSmallGroupsToNextGroup()
1008 if (CurrentColoring[SU->NodeNum] <= (int)DAGSize) in regroupNoUserInstructions()
1013 if (SuccDep.isWeak() || Succ->NodeNum >= DAGSize) in regroupNoUserInstructions()
1018 CurrentColoring[SU->NodeNum] = GroupID; in regroupNoUserInstructions()
1056 unsigned Color = CurrentColoring[SU->NodeNum]; in createBlocksForVariant()
1065 Node2CurrentBlock[SU->NodeNum] = RealID[Color]; in createBlocksForVariant()
1074 if (SuccDep.isWeak() || Succ->NodeNum >= DAGSize) in createBlocksForVariant()
1076 if (Node2CurrentBlock[Succ->NodeNum] != SUID) in createBlocksForVariant()
1077 CurrentBlocks[SUID]->addSucc(CurrentBlocks[Node2CurrentBlock[Succ->NodeNum]]); in createBlocksForVariant()
1081 if (PredDep.isWeak() || Pred->NodeNum >= DAGSize) in createBlocksForVariant()
1083 if (Node2CurrentBlock[Pred->NodeNum] != SUID) in createBlocksForVariant()
1084 CurrentBlocks[SUID]->addPred(CurrentBlocks[Node2CurrentBlock[Pred->NodeNum]]); in createBlocksForVariant()
1643 Res.SUs.push_back(SU->NodeNum); in scheduleVariant()
1700 if (Pred->NodeNum >= DAGSize) in moveLowLatencies()
1702 unsigned PredPos = ScheduledSUnitsInv[Pred->NodeNum]; in moveLowLatencies()
1718 ScheduledSUnits[BestPos] = SU->NodeNum; in moveLowLatencies()
1719 ScheduledSUnitsInv[SU->NodeNum] = BestPos; in moveLowLatencies()
1743 ScheduledSUnits[MinPos] = SU->NodeNum; in moveLowLatencies()
1744 ScheduledSUnitsInv[SU->NodeNum] = MinPos; in moveLowLatencies()
1889 DEBUG(dbgs() << "Scheduling SU(" << SU->NodeNum << ") " in schedule()