]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR target/85401
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Oct 2019 19:25:31 +0000 (19:25 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Oct 2019 19:25:31 +0000 (19:25 +0000)
* ira-color.c (allocno_copy_cost_saving): Call
ira_init_register_move_cost_if_necessary.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276426 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ira-color.c

index 0f96dde03c4cbcf4664fcd5fbd5d88d1cc5d7302..4ca92c2fd2176bb1cf3d9224a09396ab601a9fb0 100644 (file)
@@ -1,3 +1,9 @@
+2019-10-01  Maya Rashish  <coypu@sdf.org>
+
+       PR target/85401
+       * ira-color.c (allocno_copy_cost_saving): Call
+       ira_init_register_move_cost_if_necessary.
+
 2019-10-01  Maciej W. Rozycki  <macro@wdc.com>
 
        * Makefile.in (gnat_install_lib): New variable.
index 42309b99e691f444574cc7fb00e4e40c64aa9912..ce5141bd48feec25f205ab23a9d8630b42369540 100644 (file)
@@ -2817,6 +2817,7 @@ allocno_copy_cost_saving (ira_allocno_t allocno, int hard_regno)
        }
       else
        gcc_unreachable ();
+      ira_init_register_move_cost_if_necessary (allocno_mode);
       cost += cp->freq * ira_register_move_cost[allocno_mode][rclass][rclass];
     }
   return cost;