2011-05-18 Tom de Vries <tom@codesourcery.com>
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 May 2011 10:20:55 +0000 (10:20 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 May 2011 10:20:55 +0000 (10:20 +0000)
PR target/45098
* tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173853 138bc75d-0d04-0410-961f-82ee72b054a4

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

index f3e55e8..c004870 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 b00b8d4..13c2b40 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++;
     }