This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/33834] [4.3 Regression] ICE in vect_get_vec_def_for_operand, at tree-vect-transform.c:1829



------- Comment #5 from dorit at gcc dot gnu dot org  2007-10-21 07:14 -------
This patch fixes it:

Index: tree-vect-transform.c
===================================================================
*** tree-vect-transform.c       (revision 129521)
--- tree-vect-transform.c       (working copy)
*************** vectorizable_live_operation (tree stmt,
*** 5870,5875 ****
--- 5870,5878 ----

    gcc_assert (STMT_VINFO_LIVE_P (stmt_info));

+   if (STMT_VINFO_RELEVANT_P (stmt_info))
+     return false;
+
    if (STMT_VINFO_DEF_TYPE (stmt_info) == vect_reduction_def)
      return false;


(but doesn't allow vectorization. I may try a different fix that does allow
vectorization)


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]