[Patch AArch64 Obvious] Unify branch costs to generic_branch_cost
authorJames Greenhalgh <james.greenhalgh@arm.com>
Wed, 26 Jul 2017 17:39:12 +0000 (17:39 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Wed, 26 Jul 2017 17:39:12 +0000 (17:39 +0000)
commitaca97ef824afa3186a2fe43eadc705878ba5129f
tree1a5fab915a4adba3c2c465c12f3ae1432f858a78
parent3b1aa533df3e1958a3d6803c30ac12e1ecb33c69
[Patch AArch64 Obvious] Unify branch costs to generic_branch_cost

All the cores in AArch64 use the pair {1, 3} for their branch costs. As
that is covered by generic_branch_cost, we can just use that directly and
save the tiny amount of redundant code. If in future any core wants to
modify this, they can always add a special-case branch-cost back.

gcc/

* config/aarch64/aarch64.c (cortexa57_branch_cost): Remove.
(thunderx2t99_branch_cost): Likewise.
(cortexa35_tunings): Update to use generic_branch_cost.
(cortexa53_tunings): Likewise.
(cortexa57_tunings): Likewise.
(cortexa72_tunings): Likewise.
(cortexa73_tunings): Likewise.
(thunderx2t99_tunings): Likewise.

From-SVN: r250582
gcc/ChangeLog
gcc/config/aarch64/aarch64.c