• Home
  • Raw
  • Download

Lines Matching refs:SU

26 bool PPCDispatchGroupSBHazardRecognizer::isLoadAfterStore(SUnit *SU) {  in isLoadAfterStore()  argument
28 if (isBCTRAfterSet(SU)) in isLoadAfterStore()
31 const MCInstrDesc *MCID = DAG->getInstrDesc(SU); in isLoadAfterStore()
40 for (unsigned i = 0, ie = (unsigned) SU->Preds.size(); i != ie; ++i) { in isLoadAfterStore()
41 const MCInstrDesc *PredMCID = DAG->getInstrDesc(SU->Preds[i].getSUnit()); in isLoadAfterStore()
45 if (!SU->Preds[i].isNormalMemory() && !SU->Preds[i].isBarrier()) in isLoadAfterStore()
49 if (SU->Preds[i].getSUnit() == CurGroup[j]) in isLoadAfterStore()
56 bool PPCDispatchGroupSBHazardRecognizer::isBCTRAfterSet(SUnit *SU) { in isBCTRAfterSet() argument
57 const MCInstrDesc *MCID = DAG->getInstrDesc(SU); in isBCTRAfterSet()
66 for (unsigned i = 0, ie = (unsigned) SU->Preds.size(); i != ie; ++i) { in isBCTRAfterSet()
67 const MCInstrDesc *PredMCID = DAG->getInstrDesc(SU->Preds[i].getSUnit()); in isBCTRAfterSet()
71 if (SU->Preds[i].isCtrl()) in isBCTRAfterSet()
75 if (SU->Preds[i].getSUnit() == CurGroup[j]) in isBCTRAfterSet()
141 PPCDispatchGroupSBHazardRecognizer::getHazardType(SUnit *SU, int Stalls) { in getHazardType() argument
142 if (Stalls == 0 && isLoadAfterStore(SU)) in getHazardType()
145 return ScoreboardHazardRecognizer::getHazardType(SU, Stalls); in getHazardType()
148 bool PPCDispatchGroupSBHazardRecognizer::ShouldPreferAnother(SUnit *SU) { in ShouldPreferAnother() argument
149 const MCInstrDesc *MCID = DAG->getInstrDesc(SU); in ShouldPreferAnother()
154 return ScoreboardHazardRecognizer::ShouldPreferAnother(SU); in ShouldPreferAnother()
157 unsigned PPCDispatchGroupSBHazardRecognizer::PreEmitNoops(SUnit *SU) { in PreEmitNoops() argument
161 if (isLoadAfterStore(SU) && CurSlots < 6) { in PreEmitNoops()
173 return ScoreboardHazardRecognizer::PreEmitNoops(SU); in PreEmitNoops()
176 void PPCDispatchGroupSBHazardRecognizer::EmitInstruction(SUnit *SU) { in EmitInstruction() argument
177 const MCInstrDesc *MCID = DAG->getInstrDesc(SU); in EmitInstruction()
184 SU->NodeNum << "): "); in EmitInstruction()
185 DEBUG(DAG->dumpNode(SU)); in EmitInstruction()
198 CurGroup.push_back(SU); in EmitInstruction()
205 return ScoreboardHazardRecognizer::EmitInstruction(SU); in EmitInstruction()
328 getHazardType(SUnit *SU, int Stalls) { in getHazardType() argument
331 MachineInstr *MI = SU->getInstr(); in getHazardType()
388 void PPCHazardRecognizer970::EmitInstruction(SUnit *SU) { in EmitInstruction() argument
389 MachineInstr *MI = SU->getInstr(); in EmitInstruction()