Correct the PPC A2 misprediction penalty
authorHal Finkel <hfinkel@anl.gov>
Fri, 5 Apr 2013 23:28:58 +0000 (23:28 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 5 Apr 2013 23:28:58 +0000 (23:28 +0000)
The manual states that there is a minimum of 13 cycles from when the
mispredicted branch is issued to when the correct branch target is
issued.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178925 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCScheduleA2.td

index ae084aa0e8c1d143d658935ec3fd566b7d9dc335..8d5838e54e15af3996e6dd6bcd1ec3182ecf4cd8 100644 (file)
@@ -759,7 +759,7 @@ def PPCA2Model : SchedMachineModel {
   let LoadLatency = 6; // Optimistic load latency assuming bypass.
                        // This is overriden by OperandCycles if the
                        // Itineraries are queried instead.
-  let MispredictPenalty = 6;
+  let MispredictPenalty = 13;
 
   let Itineraries = PPCA2Itineraries;
 }