[llvm-commits] [llvm] r142621 - /llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp
Dan Gohman
gohman at apple.com
Thu Oct 20 14:45:36 PDT 2011
Author: djg
Date: Thu Oct 20 16:45:36 2011
New Revision: 142621
URL: http://llvm.org/viewvc/llvm-project?rev=142621&view=rev
Log:
Disable the PPC hazard recognizer. It currently only supports
top-down scheduling and top-down scheduling is going away.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp?rev=142621&r1=142620&r2=142621&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp Thu Oct 20 16:45:36 2011
@@ -57,10 +57,16 @@
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();
}
}
More information about the llvm-commits
mailing list