Commit b9ff6079 by Andrew Pinski Committed by Andrew Pinski

re PR rtl-optimization/37263 (extra code for doloop with unsigned 32bit types on LP64)

2008-09-16  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/37263
        * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Prefer the
        eliminate IV if the cost are the same.

From-SVN: r140395
parent d573123d
2008-09-16 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/37263
* tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Prefer the
eliminate IV if the cost are the same.
2008-09-16 Richard Guenther <rguenther@suse.de>
PR middle-end/37380
......
......@@ -3880,8 +3880,8 @@ determine_use_iv_cost_condition (struct ivopts_data *data,
fd_ivopts_data = data;
walk_tree (&cmp_iv->base, find_depends, &depends_on_express, NULL);
/* Choose the better approach. */
if (compare_costs (elim_cost, express_cost) < 0)
/* Choose the better approach, preferring the eliminated IV. */
if (compare_costs (elim_cost, express_cost) <= 0)
{
cost = elim_cost;
depends_on = depends_on_elim;
......
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