Re: [PATCH][AArch64] Add branch-cost to cpu tuning information.

2015-05-05 Thread Marcus Shawcroft
On 5 May 2015 at 11:00, Matthew Wahab wrote: > 2015-05-05 Matthew Wahab > > > * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New. > (tune_params): Add field branch_costs. > (aarch64_branch_cost): Declare. > * gcc/config/aarch64.c (generic_branch_cost):

Re: [PATCH][AArch64] Add branch-cost to cpu tuning information.

2015-05-05 Thread Matthew Wahab
On 01/05/15 10:18, Marcus Shawcroft wrote: On 21 April 2015 at 15:00, Matthew Wahab wrote: +int aarch64_branch_cost (bool, bool); + You would never guess looking at this .h today, but long ago there was something close to alphabetical order by function name in place. Please lift this definitio

Re: [PATCH][AArch64] Add branch-cost to cpu tuning information.

2015-05-01 Thread Marcus Shawcroft
On 21 April 2015 at 15:00, Matthew Wahab wrote: > 2015-05-21 Matthew Wahab > > * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New. > (tune_params): Add field branch_costs. > (aarch64_branch_cost): Declare. > * gcc/config/aarch64.c (generic_branch_cost)

[PATCH][AArch64] Add branch-cost to cpu tuning information.

2015-04-21 Thread Matthew Wahab
The AArch64 backend sets BRANCH_COST to be the constant value 2 for all cpus, meaning that the compiler thinks that branches cost the same across all cpus. This patch reworks the handling of branch costs to allow per-cpu values to be set. The actual value of the branch-costs is unchanged as the c