aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2011-05-18 10:20:55 +0000
committerTom de Vries <vries@gcc.gnu.org>2011-05-18 10:20:55 +0000
commit8f5e543422f5d052c6097e4283e21307445bf7ba (patch)
treece7dbf4f72eabfc5bcf87987013aa73290493d18
parent116bc3a4d8ddc47c07bd9e619cd4f860d491069d (diff)
downloadgcc-8f5e543422f5d052c6097e4283e21307445bf7ba.zip
gcc-8f5e543422f5d052c6097e4283e21307445bf7ba.tar.gz
gcc-8f5e543422f5d052c6097e4283e21307445bf7ba.tar.bz2
re PR middle-end/45098 (Missed induction variable optimization)
2011-05-18 Tom de Vries <tom@codesourcery.com> PR target/45098 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost. From-SVN: r173853
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-ssa-loop-ivopts.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f3e55e8..c004870 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-18 Tom de Vries <tom@codesourcery.com>
+
+ PR target/45098
+ * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
+
2011-05-18 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/49000
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c
index b00b8d4..13c2b40 100644
--- a/gcc/tree-ssa-loop-ivopts.c
+++ b/gcc/tree-ssa-loop-ivopts.c
@@ -2745,7 +2745,7 @@ seq_cost (rtx seq, bool speed)
{
set = single_set (seq);
if (set)
- cost += rtx_cost (set, SET,speed);
+ cost += rtx_cost (SET_SRC (set), SET, speed);
else
cost++;
}