]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
toplev.c (backend_init_target): Avoid calling init_reload when using LRA.
authorZhouyi Zhou <yizhouzhou@ict.ac.cn>
Tue, 26 Apr 2016 20:52:16 +0000 (20:52 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 26 Apr 2016 20:52:16 +0000 (14:52 -0600)
2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>

* toplev.c (backend_init_target): Avoid calling init_reload when using
LRA.

From-SVN: r235453

gcc/ChangeLog
gcc/toplev.c

index 23852916ad83138049f7271bc654890766b5f38e..99b5e65495efba40c08c7a1378522ae6160c3d48 100644 (file)
@@ -1,3 +1,8 @@
+2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
+
+       * toplev.c (backend_init_target): Avoid calling init_reload when using
+       LRA.
+
 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
 
        * reorg.c (try_merge_delay_insns): Declare i and j inside the
index 8979d2634260b1e5ad1183ed26da444c47cd3631..580c03aa62192970ba6d3ef4fa7bfbb8153023eb 100644 (file)
@@ -1618,7 +1618,8 @@ backend_init_target (void)
   init_alias_target ();
 
   /* Depends on HARD_FRAME_POINTER_REGNUM.  */
-  init_reload ();
+  if (!ira_use_lra_p)
+    init_reload ();
 
   /* Depends on the enabled attribute.  */
   recog_init ();