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 | 5bdab4a63cab2ed2f96a3490fa2349550da7c7f9 (patch) | |
tree | 30b8e21dc7e2b0d398093ffe856cc6edf80be4e5 /lib/Target/PowerPC/PPCInstrInfo.cpp | |
parent | ff764815e6531be6b2d944bd6a3f1fcfc682db01 (diff) | |
download | llvm-5bdab4a63cab2ed2f96a3490fa2349550da7c7f9.tar.gz llvm-5bdab4a63cab2ed2f96a3490fa2349550da7c7f9.tar.bz2 llvm-5bdab4a63cab2ed2f96a3490fa2349550da7c7f9.tar.xz |
Disable the PPC hazard recognizer. It currently only supports
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
Diffstat (limited to 'lib/Target/PowerPC/PPCInstrInfo.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCInstrInfo.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.cpp b/lib/Target/PowerPC/PPCInstrInfo.cpp index 649a45a085..95174177cd 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/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(); } } |