Clean up useless initialization for IRA if using LRA.
authorKito Cheng <kito@0xlab.org>
Tue, 16 Sep 2014 05:24:31 +0000 (05:24 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Tue, 16 Sep 2014 05:24:31 +0000 (05:24 +0000)
commit9994ad20a13463bf79f22f439a072df3de23f238
tree888fab7a9d704ecd3cc31759ba700f627ea476f9
parenta86507b29ec2520c70b12c84f4e6c1098f1a3fc0
Clean up useless initialization for IRA if using LRA.

gcc/
* ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
ira_spilled_reg_stack_slots_num if using lra.
(do_reload): Remove release ira_spilled_reg_stack_slots part.
* ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
make sure not using lra.
(ira_reuse_stack_slot): Likewise.
(ira_mark_new_stack_slot): Likewise.

From-SVN: r215286
gcc/ChangeLog
gcc/ira-color.c
gcc/ira.c