http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47890

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |irar at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-25 
16:43:11 UTC ---
Ira,

Index: gcc/tree-vect-loop.c
===================================================================
*** gcc/tree-vect-loop.c        (revision 170492)
--- gcc/tree-vect-loop.c        (working copy)
*************** get_initial_def_for_induction (gimple iv
*** 2886,2891 ****
--- 2886,2894 ----
        gimple_assign_set_lhs (new_stmt, induc_def);
        si = gsi_start_bb (bb);
        gsi_insert_before (&si, new_stmt, GSI_SAME_STMT);
+       set_vinfo_for_stmt (new_stmt,
+                         new_stmt_vec_info (new_stmt, loop_vinfo, NULL));
+       STMT_VINFO_RELATED_STMT (vinfo_for_stmt (new_stmt)) = induction_phi;
      }

    return induc_def;

fixes this for me, but I'm not familiar with how this related stmt stuff
works, so can you please double-check?

Thanks.

Reply via email to