gcc/
commit4aafe2397f81c20dc96aae817b1f0ff4149eebe1
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Oct 2014 10:00:18 +0000 (29 10:00 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Oct 2014 10:00:18 +0000 (29 10:00 +0000)
treeb6794ab36a4bffd07c40e1276f4aaeff13cbd2ce
parent0929c47186965203e3642e0fc25a331a26bccaa3
gcc/
PR rtl-optimization/63340 (part 1)
* ira-costs.c (all_cost_classes): New variable.
(complete_cost_classes): New function, split out from...
(setup_cost_classes): ...here.
(initiate_regno_cost_classes): Set up all_cost_classes.
(restrict_cost_classes): New function.
(setup_regno_cost_classes_by_aclass): Restrict the cost classes to
registers that are valid for the register's mode.
(setup_regno_cost_classes_by_mode): Model the mode cache as a
restriction of all_cost_classes to a particular mode.
(print_allocno_costs): Remove contains_reg_of_mode check.
(print_pseudo_costs, find_costs_and_classes): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216828 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ira-costs.c