re PR rtl-optimization/70703 (Regression in register usage on x86)

2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/70703
	* ira-color.c (update_conflict_hard_regno_costs): Use
	int64_t instead of HOST_WIDE_INT.

From-SVN: r246765
This commit is contained in:
Vladimir Makarov 2017-04-07 16:06:28 +00:00 committed by Vladimir Makarov
parent 057da7af80
commit 7879aabea7
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/70703
* ira-color.c (update_conflict_hard_regno_costs): Use
int64_t instead of HOST_WIDE_INT.
2017-04-07 Vladimir Makarov <vmakarov@redhat.com> 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/70478 PR rtl-optimization/70478

View File

@ -1522,7 +1522,7 @@ update_conflict_hard_regno_costs (int *costs, enum reg_class aclass,
index = ira_class_hard_reg_index[aclass][hard_regno]; index = ira_class_hard_reg_index[aclass][hard_regno];
if (index < 0) if (index < 0)
continue; continue;
cost = (int) (((HOST_WIDE_INT) conflict_costs [i] * mult) / div); cost = (int) (((int64_t) conflict_costs [i] * mult) / div);
if (cost == 0) if (cost == 0)
continue; continue;
cont_p = true; cont_p = true;