This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/33834] [4.3 Regression] ICE in vect_get_vec_def_for_operand, at tree-vect-transform.c:1829
- From: "dorit at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Oct 2007 07:14:26 -0000
- Subject: [Bug tree-optimization/33834] [4.3 Regression] ICE in vect_get_vec_def_for_operand, at tree-vect-transform.c:1829
- References: <bug-33834-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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