Commit bddc98e1 by Vladimir Makarov Committed by Vladimir Makarov

re PR middle-end/48367 (200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled)

2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>

	PR middle-end/48367
	* ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
	calculation.

From-SVN: r171767
parent 23b03b77
2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
PR middle-end/48367
* ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
calculation.
2011-03-30 Jeff Law <law@redhat.com> 2011-03-30 Jeff Law <law@redhat.com>
* PR bootstrap/48371 * PR bootstrap/48371
......
...@@ -1652,7 +1652,7 @@ find_costs_and_classes (FILE *dump_file) ...@@ -1652,7 +1652,7 @@ find_costs_and_classes (FILE *dump_file)
i_costs[k] += add_cost; i_costs[k] += add_cost;
} }
add_cost = COSTS (costs, a_num)->mem_cost; add_cost = COSTS (costs, a_num)->mem_cost;
if (add_cost && INT_MAX - add_cost < i_mem_cost) if (add_cost > 0 && INT_MAX - add_cost < i_mem_cost)
i_mem_cost = INT_MAX; i_mem_cost = INT_MAX;
else else
i_mem_cost += add_cost; i_mem_cost += add_cost;
......
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