rs6000: Don't use rs6000_cpu_attr directly
authorSegher Boessenkool <segher@kernel.crashing.org>
Thu, 7 Dec 2017 09:35:10 +0000 (10:35 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Thu, 7 Dec 2017 09:35:10 +0000 (10:35 +0100)
commit39f88700226c8d1f91f4a4ac9d557e721618e87f
tree22e48190057f68b7f3c22d8df5d41e6dc3d1c4f1
parent793fa2a437cec661509c8d7b2c7d967b1b225def
rs6000: Don't use rs6000_cpu_attr directly

In some places in the code we currently use rs6000_cpu_attr, although
that is a cast from rs6000_tune.  This patch changes things to be more
regular and clearer.  Now rs6000_cpu_attr is not used any more, and
it is deleted.

* config/rs6000/rs6000.h (rs6000_cpu_attr): Delete.
* config/rs6000/rs6000.c (rs6000_variable_issue_1): Use rs6000_tune
instead of rs6000_cpu_attr.
(rs6000_adjust_cost): Ditto.
(is_microcoded_insn): Ditto.
(rs6000_adjust_priority): Ditto.
(rs6000_issue_rate): Ditto.
(rs6000_use_sched_lookahead): Ditto.
(rs6000_use_sched_lookahead_guard): Ditto.
(rs6000_sched_reorder): Ditto.
(force_new_group): Ditto.
* config/rs6000/rs6000.md (cpu attribute): Ditto.
(group_ending_nop): Ditto.

From-SVN: r255463
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.h
gcc/config/rs6000/rs6000.md