sparc-protos.h (sparc_branch_cost): Declare.
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 28 Sep 2018 08:47:20 +0000 (08:47 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 28 Sep 2018 08:47:20 +0000 (08:47 +0000)
commit227efe870043c9e8b4c58a702e90698b2970ff75
treed55bdb8802f5a822878c0fb1037b0babb1223f26
parent7847bfcbb8f5ee155f13a46af600f83892423c52
sparc-protos.h (sparc_branch_cost): Declare.

* config/sparc/sparc-protos.h (sparc_branch_cost): Declare.
* config/sparc/sparc.h (BRANCH_COST): Call sparc_branch_cost.
* config/sparc/sparc.c (struct processor_costs): Add branch_cost field.
(cypress_costs): Set it.
(supersparc_costs): Likewise.
(hypersparc_costs): Likewise.
(leon_cost): Likewise.
(leon3_costs): Likewise.
(sparclet_costs): Likewise.
(ultrasparc_costs): Likewise.
(ultrasparc_costs): Likewise.
(niagara_costs): Likewise.
(niagara2_costs): Likewise.
(niagara3_costs): Likewise.
(niagara4_costs): Likewise.
(niagara7_costs): Likewise.
(m8_costs): Likewise.
(TARGET_CAN_FOLLOW_JUMP): Define.
(pass_work_around_errata::gate): Minor tweak.
(sparc_option_override): Remove MASK_FSMULD mask for V7 processors.
Do not set both MASK_VIS4 and MASK_VIS4B for M8 processor.
Automaitcally clear MASK_FSMULD mask for V7 processors.
(sparc_can_follow_jump): New static function.
(output_ubranch): Deal with CROSSING_JUMP_P.
(sparc_use_sched_lookahead): Rewrite using switch statement.
(sparc_issue_rate): Reorder.
(sparc_branch_cost): New function.

From-SVN: r264687
13 files changed:
gcc/ChangeLog
gcc/config/sparc/sparc-protos.h
gcc/config/sparc/sparc.c
gcc/config/sparc/sparc.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/sparc/20160229-1.c
gcc/testsuite/gcc.target/sparc/cbcond-2.c
gcc/testsuite/gcc.target/sparc/movcc-1.c
gcc/testsuite/gcc.target/sparc/movcc-2.c
gcc/testsuite/gcc.target/sparc/overflow-3.c
gcc/testsuite/gcc.target/sparc/overflow-4.c
gcc/testsuite/gcc.target/sparc/overflow-5.c
gcc/testsuite/gcc.target/sparc/setcc-4.c