PR middle-end/79521
* ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
ira_init_register_move_cost_if_necessary.
From-SVN: r245500
+2017-02-15 Jeff Law <law@redhat.com>
+
+ PR middle-end/79521
+ * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
+ ira_init_register_move_cost_if_necessary.
+
2017-02-15 Martin Sebor <msebor@redhat.com>
PR middle-end/32003
{
rtx x = XEXP (PATTERN (insn), 0);
if (GET_CODE (x) == REG
- && REGNO (x) >= FIRST_PSEUDO_REGISTER)
+ && REGNO (x) >= FIRST_PSEUDO_REGISTER
+ && have_regs_of_mode[GET_MODE (x)])
ira_init_register_move_cost_if_necessary (GET_MODE (x));
return insn;
}