diff options
author | Dan Gohman <gohman@apple.com> | 2011-10-20 21:45:36 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2011-10-20 21:45:36 +0000 |
commit | 000e2add18f5093e2d3b13ea37ebfa48302631e2 (patch) | |
tree | cd9e4428490e8a7a337cf37a15d7a4614195c804 /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp | |
parent | 90fb55237bf975d1b13f580eaec2b0f172714c8e (diff) | |
download | bcm5719-llvm-000e2add18f5093e2d3b13ea37ebfa48302631e2.tar.gz bcm5719-llvm-000e2add18f5093e2d3b13ea37ebfa48302631e2.zip |
Disable the PPC hazard recognizer. It currently only supports
top-down scheduling and top-down scheduling is going away.
llvm-svn: 142621
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstrInfo.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp index 649a45a0852..95174177cd1 100644 --- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp @@ -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(); } } |