diff options
author | Vladimir Makarov <vmakarov@redhat.com> | 2012-05-10 19:58:01 +0000 |
---|---|---|
committer | Vladimir Makarov <vmakarov@redhat.com> | 2012-05-10 19:58:01 +0000 |
commit | 0859a104f16f272af23c17b14e4070a933defc66 (patch) | |
tree | 65f4e1002edcbf2bf9034c2a5c888f58081113dc /gcc/ira.c | |
parent | f6564c4f5b207b822401e79f67da71fbac9449b8 (diff) |
2012-05-10 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/53125
* ira.c (ira): Call find_moveable_pseudos or
move_unallocated_pseudos if only ira_conflicts_p is true.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@187373 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ira.c')
-rw-r--r-- | gcc/ira.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ira.c b/gcc/ira.c index 456c5f0bcb3..f0d885c8813 100644 --- a/gcc/ira.c +++ b/gcc/ira.c @@ -4125,7 +4125,12 @@ ira (FILE *f) } allocated_reg_info_size = max_reg_num (); - find_moveable_pseudos (); + + /* It is not worth to do such improvement when we use a simple + allocation because of -O0 usage or because the function is too + big. */ + if (ira_conflicts_p) + find_moveable_pseudos (); max_regno_before_ira = max_reg_num (); ira_setup_eliminable_regset (); @@ -4234,7 +4239,10 @@ ira (FILE *f) max_regno * sizeof (struct ira_spilled_reg_stack_slot)); } allocate_initial_values (reg_equivs); - move_unallocated_pseudos (); + + /* See comment for find_moveable_pseudos call. */ + if (ira_conflicts_p) + move_unallocated_pseudos (); } static void |