This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/37174] [4.4 Regression] ICE: in vinfo_for_stmt, at tree-vectorizer.h:546
- From: "jv244 at cam dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Aug 2008 12:34:05 -0000
- Subject: [Bug middle-end/37174] [4.4 Regression] ICE: in vinfo_for_stmt, at tree-vectorizer.h:546
- References: <bug-37174-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from jv244 at cam dot ac dot uk 2008-08-20 12:34 -------
(In reply to comment #4)
> I am testing the following patch:
I checked that it fixed the problem with the original bug (PR37174.tgz)
Thanks!
>
> Index: tree-vect-analyze.c
> ===================================================================
> --- tree-vect-analyze.c (revision 139225)
> +++ tree-vect-analyze.c (working copy)
> @@ -2531,7 +2535,7 @@ vect_get_and_check_slp_defs (loop_vec_in
> /* Check if DEF_STMT is a part of a pattern and get the def stmt from
> the pattern. Check that all the stmts of the node are in the
> pattern. */
> - if (def_stmt && vinfo_for_stmt (def_stmt)
> + if (def_stmt && dt[i] == vect_loop_def && vinfo_for_stmt (def_stmt)
> && STMT_VINFO_IN_PATTERN_P (vinfo_for_stmt (def_stmt)))
> {
> if (!*first_stmt_dt0)
>
> If everything goes OK, I will submit it tomorrow.
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37174