]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2018-11-25 Vladimir Makarov <vmakarov@redhat.com>
authorvmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 25 Nov 2018 05:46:44 +0000 (05:46 +0000)
committervmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 25 Nov 2018 05:46:44 +0000 (05:46 +0000)
PR bootstrap/88157
* ira-costs.c (record_operand_costs): Initiate register move cost
for mode.

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

gcc/ChangeLog
gcc/ira-costs.c

index f9a12f88a609617e09b668ae816eed98b09e7dbd..2bff937cbcfec8289a91ba3c395a0a0df71ef290 100644 (file)
@@ -1,3 +1,9 @@
+2018-11-25  Vladimir Makarov  <vmakarov@redhat.com>
+
+       PR bootstrap/88157
+       * ira-costs.c (record_operand_costs): Initiate register move cost
+       for mode.
+
 2018-11-23  Jeff Law  <law@redhat.com>
 
        PR rtl-optimization/87468
index cfda4322bc35ede37582f5a0479e55ace730bc43..83dfdcd86ae7635b26476b0389febe2cbe138030 100644 (file)
@@ -1318,6 +1318,7 @@ record_operand_costs (rtx_insn *insn, enum reg_class *pref)
          int cost, k;
          bool dead_p = find_regno_note (insn, REG_DEAD, REGNO (src));
 
+         ira_init_register_move_cost_if_necessary (mode);
          hard_reg_class = REGNO_REG_CLASS (other_regno);
          /* Target code may return any cost for mode which does not
             fit the the hard reg class (e.g. DImode for AREG on