// Should use subtarget info to pick the right hazard recognizer. For
// now, always return a PPC970 recognizer.
const TargetInstrInfo *TII = TM->getInstrInfo();
+ (void)TII;
assert(TII && "No InstrInfo?");
unsigned Directive = TM->getSubtarget<PPCSubtarget>().getDarwinDirective();
if (Directive == PPC::DIR_440) {
- const InstrItineraryData *II = TM->getInstrItineraryData();
- return new PPCHazardRecognizer440(II, DAG);
+ // Disable the hazard recognizer for now, as it doesn't support
+ // bottom-up scheduling.
+ //const InstrItineraryData *II = TM->getInstrItineraryData();
+ //return new PPCHazardRecognizer440(II, DAG);
+ return new ScheduleHazardRecognizer();
}
else {
- return new PPCHazardRecognizer970(*TII);
+ // Disable the hazard recognizer for now, as it doesn't support
+ // bottom-up scheduling.
+ //return new PPCHazardRecognizer970(*TII);
+ return new ScheduleHazardRecognizer();
}
}