aboutsummaryrefslogtreecommitdiff
path: root/gcc/ira.c
diff options
context:
space:
mode:
authorKito Cheng <kito@0xlab.org>2014-06-09 04:21:42 +0000
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>2014-06-09 04:21:42 +0000
commit001010df9d0be0ee43974bc2b5b44dcb878a7318 (patch)
tree62d9ce1b80a888d001a918a88fe422ddf42a3c31 /gcc/ira.c
parent24d047a30a8007163d0eea43e8dd445e2b999160 (diff)
downloadgcc-001010df9d0be0ee43974bc2b5b44dcb878a7318.zip
gcc-001010df9d0be0ee43974bc2b5b44dcb878a7318.tar.gz
gcc-001010df9d0be0ee43974bc2b5b44dcb878a7318.tar.bz2
ira.c (ira): Don't call init_caller_save if LRA enabled since LRA use its own infrastructure...
* ira.c (ira): Don't call init_caller_save if LRA enabled since LRA use its own infrastructure to handle that. From-SVN: r211364
Diffstat (limited to 'gcc/ira.c')
-rw-r--r--gcc/ira.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ira.c b/gcc/ira.c
index 9d9bdf9..6ee1c140 100644
--- 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)