From: Tom de Vries Date: Wed, 18 May 2011 10:20:55 +0000 (+0000) Subject: re PR middle-end/45098 (Missed induction variable optimization) X-Git-Tag: releases/gcc-4.7.0~6704 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f5e543422f5d052c6097e4283e21307445bf7ba;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f3e55e8592e2..c004870d5950 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 b00b8d44ac38..13c2b407cc2f 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++; }