[llvm] r178925 - Correct the PPC A2 misprediction penalty

David Blaikie dblaikie at gmail.com
Sun Apr 28 07:56:44 PDT 2013


Testable?
On Apr 6, 2013 10:31 AM, "Hal Finkel" <hfinkel at anl.gov> wrote:

> Author: hfinkel
> Date: Fri Apr  5 18:28:58 2013
> New Revision: 178925
>
> URL: http://llvm.org/viewvc/llvm-project?rev=178925&view=rev
> Log:
> Correct the PPC A2 misprediction penalty
>
> 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.
>
> Modified:
>     llvm/trunk/lib/Target/PowerPC/PPCScheduleA2.td
>
> Modified: llvm/trunk/lib/Target/PowerPC/PPCScheduleA2.td
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCScheduleA2.td?rev=178925&r1=178924&r2=178925&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Target/PowerPC/PPCScheduleA2.td (original)
> +++ llvm/trunk/lib/Target/PowerPC/PPCScheduleA2.td Fri Apr  5 18:28:58 2013
> @@ -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;
>  }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130428/0b12b41e/attachment.html>


More information about the llvm-commits mailing list