diff options
author | Andrew Pinski <andrew_pinski@playstation.sony.com> | 2008-09-16 16:21:35 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2008-09-16 09:21:35 -0700 |
commit | b9ff60795bf891e640a88d02971fc8c578708736 (patch) | |
tree | 2d4989f9f992824ba8ea670dc503c2e5be4f7b2a /gcc/tree-ssa-loop-ivopts.c | |
parent | d573123d17fb48ec675aa25f4e8a9754d876228c (diff) | |
download | gcc-b9ff60795bf891e640a88d02971fc8c578708736.tar.gz |
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
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 341f41cea52..4639588a162 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -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; |