summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCScheduleG5.td
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-04-05 05:49:18 +0000
committerHal Finkel <hfinkel@anl.gov>2013-04-05 05:49:18 +0000
commit1a958cf30d39a6b188a7559b30e7392487b7a291 (patch)
tree95825a78428945f5367bff61046b0320a2947cdd /llvm/lib/Target/PowerPC/PPCScheduleG5.td
parent4e1e3e75b6a956c48513b0cb592555faa32e1af6 (diff)
downloadbcm5719-llvm-1a958cf30d39a6b188a7559b30e7392487b7a291.tar.gz
bcm5719-llvm-1a958cf30d39a6b188a7559b30e7392487b7a291.zip
Add a SchedMachineModel for the PPC G5
llvm-svn: 178850
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCScheduleG5.td')
-rw-r--r--llvm/lib/Target/PowerPC/PPCScheduleG5.td15
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCScheduleG5.td b/llvm/lib/Target/PowerPC/PPCScheduleG5.td
index 7c02ea099c1..c64998d52a0 100644
--- a/llvm/lib/Target/PowerPC/PPCScheduleG5.td
+++ b/llvm/lib/Target/PowerPC/PPCScheduleG5.td
@@ -92,3 +92,18 @@ def G5Itineraries : ProcessorItineraries<
InstrItinData<VecVSL , [InstrStage<2, [VIU1]>]>,
InstrItinData<VecVSR , [InstrStage<3, [VPU]>]>
]>;
+
+// ===---------------------------------------------------------------------===//
+// e5500 machine model for scheduling and other instruction cost heuristics.
+
+def G5Model : SchedMachineModel {
+ let IssueWidth = 4; // 4 (non-branch) instructions are dispatched per cycle.
+ let MinLatency = 0; // Out-of-order dispatch.
+ let LoadLatency = 3; // Optimistic load latency assuming bypass.
+ // This is overriden by OperandCycles if the
+ // Itineraries are queried instead.
+ let MispredictPenalty = 16;
+
+ let Itineraries = G5Itineraries;
+}
+
OpenPOWER on IntegriCloud