ira-color.c (update_costs_from_allocno): Call ira_init_register_move_cost_if_necessary.
authorMaya Rashish <coypu@sdf.org>
Fri, 4 Oct 2019 15:43:07 +0000 (15:43 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 4 Oct 2019 15:43:07 +0000 (09:43 -0600)
* ira-color.c (update_costs_from_allocno): Call
ira_init_register_move_cost_if_necessary.

From-SVN: r276587

gcc/ChangeLog
gcc/ira-color.c

index 9bc2aab12887743e8e5e356eb45ec8762c9098ba..1274b648b8bf3bd6279c861fb3a4e74eb97b2055 100644 (file)
@@ -1,3 +1,8 @@
+2019-10-04  Maya Rashish  <coypu@sdf.org>
+
+       * ira-color.c (update_costs_from_allocno): Call
+       ira_init_register_move_cost_if_necessary.
+
 2019-10-04  Jeff Law  <law@redhat.com>
 
        * config/h8300/h8300.md (cpymemsi): Disable.
index ce5141bd48feec25f205ab23a9d8630b42369540..e38c167ebc4e1b4405d08966de8062ba8148accd 100644 (file)
@@ -1372,6 +1372,7 @@ update_costs_from_allocno (ira_allocno_t allocno, int hard_regno,
             e.g. DImode for AREG on x86.  For such cases the
             register move cost will be maximal.  */
          mode = narrower_subreg_mode (mode, ALLOCNO_MODE (cp->second));
+         ira_init_register_move_cost_if_necessary (mode);
          
          cost = (cp->second == allocno
                  ? ira_register_move_cost[mode][rclass][aclass]