ira.c (ira): Don't call init_caller_save if LRA enabled since LRA use its own infrast...
authorKito Cheng <kito@0xlab.org>
Mon, 9 Jun 2014 04:21:42 +0000 (04:21 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Mon, 9 Jun 2014 04:21:42 +0000 (04:21 +0000)
* ira.c (ira): Don't call init_caller_save if LRA enabled
since LRA use its own infrastructure to handle that.

From-SVN: r211364

gcc/ChangeLog
gcc/ira.c

index 2e6c524..2df8ce2 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-09  Kito Cheng  <kito@0xlab.org>
+
+       * ira.c (ira): Don't call init_caller_save if LRA enabled
+       since LRA use its own infrastructure to handle that.
+
 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
 
        * symtab.c (dump_symtab_base): Update dumping.
index 9d9bdf9..6ee1c14 100644 (file)
--- a/gcc/ira.c
+++ b/gcc/ira.c
@@ -5166,7 +5166,8 @@ ira (FILE *f)
 #endif
   bitmap_obstack_initialize (&ira_bitmap_obstack);
 
-  if (flag_caller_saves)
+  /* LRA uses its own infrastructure to handle caller save registers.  */
+  if (flag_caller_saves && !ira_use_lra_p)
     init_caller_save ();
 
   if (flag_ira_verbose < 10)