Commit ff216a48 by Vladimir Makarov Committed by Vladimir Makarov

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

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

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

From-SVN: r246711
parent 891b30ac
2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/70703
* ira-color.c (update_conflict_hard_regno_costs): Use
HOST_WIDE_INT instead of long.
2017-04-05 Uros Bizjak <ubizjak@gmail.com>
PR target/80298
......
......@@ -1522,7 +1522,7 @@ update_conflict_hard_regno_costs (int *costs, enum reg_class aclass,
index = ira_class_hard_reg_index[aclass][hard_regno];
if (index < 0)
continue;
cost = (int) (((long) conflict_costs [i] * mult) / div);
cost = (int) (((HOST_WIDE_INT) conflict_costs [i] * mult) / div);
if (cost == 0)
continue;
cont_p = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment