This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/50374] Support vectorization of min/max location pattern
- From: "irar at il dot ibm.com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Sep 2011 07:51:35 +0000
- Subject: [Bug tree-optimization/50374] Support vectorization of min/max location pattern
- Auto-submitted: auto-generated
- References: <bug-50374-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374
--- Comment #18 from Ira Rosen <irar at il dot ibm.com> 2011-09-22 07:51:35 UTC ---
(In reply to comment #16)
> and -3.c fails with an ICE in the vectorizer, Ira,
> could you look at that?
--- tree-vect-stmts.c 2011-09-22 09:48:34.000000000 +0200
+++ tree-vect-stmts.c.new 2011-09-22 09:48:14.000000000 +0200
@@ -4806,7 +4806,8 @@ vectorizable_condition (gimple stmt, gim
return false;
gcc_assert (ncopies >= 1);
- if (reduc_index && ncopies > 1)
+ if ((reduc_index || STMT_VINFO_COMPOUND_PATTERN (stmt_info))
+ && (ncopies > 1))
return false; /* FORNOW */
if (!STMT_VINFO_RELEVANT_P (stmt_info)