ira.c (init_move_cost): Adjust choice of subclasses to match the current ira_init_reg...
authorRichard Sandiford <rdsandiford@googlemail.com>
Thu, 31 May 2012 05:30:19 +0000 (05:30 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 31 May 2012 05:30:19 +0000 (05:30 +0000)
commit48e3d6e9de8a3f01bdc1d16a65c4106b83c00d48
treeb22b7ab6c9c1d3f267834c6945b0cd3a53848dbe
parent3e575fe22b54b3c5738485f02c6d60c8c30b327e
ira.c (init_move_cost): Adjust choice of subclasses to match the current ira_init_register_move_cost choice.

gcc/
* ira.c (init_move_cost): Adjust choice of subclasses to match
the current ira_init_register_move_cost choice.  Use
ira_class_subset_p instead of reg_class_subset_p.
(ira_init_register_move_cost): Assert that move_cost,
may_move_in_cost and may_move_out_cost already hold the desired
values for their ira_* equivalents.  For the latter two,
ignore classes that can't store a register of the given mode.

From-SVN: r188046
gcc/ChangeLog
gcc/ira.c