From 8f5e543422f5d052c6097e4283e21307445bf7ba Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Wed, 18 May 2011 10:20:55 +0000 Subject: [PATCH] re PR middle-end/45098 (Missed induction variable optimization) 2011-05-18 Tom de Vries PR target/45098 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost. From-SVN: r173853 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-loop-ivopts.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f3e55e8592e..c004870d595 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-05-18 Tom de Vries + + PR target/45098 + * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost. + 2011-05-18 Jakub Jelinek PR tree-optimization/49000 diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index b00b8d44ac3..13c2b407cc2 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++; } -- 2.30.2