Disable the PPC hazard recognizer. It currently only supports
authorDan Gohman <gohman@apple.com>
Thu, 20 Oct 2011 21:45:36 +0000 (21:45 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 20 Oct 2011 21:45:36 +0000 (21:45 +0000)
top-down scheduling and top-down scheduling is going away.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142621 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCInstrInfo.cpp

index 649a45a08523191c85873ed5d47666b0bdea50b9..95174177cd1a134d1d599757bcdcc2c4c306d2aa 100644 (file)
@@ -57,10 +57,16 @@ ScheduleHazardRecognizer *PPCInstrInfo::CreateTargetHazardRecognizer(
   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.
+    //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();
   }
 }