re PR middle-end/45098 (Missed induction variable optimization)
authorTom de Vries <tom@codesourcery.com>
Wed, 18 May 2011 10:20:55 +0000 (10:20 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 18 May 2011 10:20:55 +0000 (10:20 +0000)
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

gcc/ChangeLog
gcc/tree-ssa-loop-ivopts.c

index f3e55e8592e22f428288ebb337fd46122ac8d789..c004870d5950c9f64fd3dc6f11a162f1a7667191 100644 (file)
@@ -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
index b00b8d44ac38afc2466adb612c195b9c2d0c1a19..13c2b407cc2ff8a1434e6ee092cae8d0c9068e37 100644 (file)
@@ -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++;
     }