From c6d08f10bf797cc78068ef30bd0e8812a5bdc9a2 Mon Sep 17 00:00:00 2001 From: Hal Finkel Date: Mon, 17 Oct 2011 04:03:49 +0000 Subject: Add PPC 440 scheduler and some associated tests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142170 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCHazardRecognizers.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib/Target/PowerPC/PPCHazardRecognizers.cpp') diff --git a/lib/Target/PowerPC/PPCHazardRecognizers.cpp b/lib/Target/PowerPC/PPCHazardRecognizers.cpp index cddc9d8..3197fc8 100644 --- a/lib/Target/PowerPC/PPCHazardRecognizers.cpp +++ b/lib/Target/PowerPC/PPCHazardRecognizers.cpp @@ -22,6 +22,19 @@ using namespace llvm; //===----------------------------------------------------------------------===// +// PowerPC 440 Hazard Recognizer +void PPCHazardRecognizer440::EmitInstruction(SUnit *SU) { + const MCInstrDesc *MCID = DAG->getInstrDesc(SU); + if (!MCID) { + // This is a PPC pseudo-instruction. + // FIXME: Should something else be done? + return; + } + + ScoreboardHazardRecognizer::EmitInstruction(SU); +} + +//===----------------------------------------------------------------------===// // PowerPC 970 Hazard Recognizer // // This models the dispatch group formation of the PPC970 processor. Dispatch -- cgit v1.1