This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32681] ice for legal C code with flags -ffast-math -O3 -ftree-vectorize
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2007 10:23:28 -0000
- Subject: [Bug tree-optimization/32681] ice for legal C code with flags -ffast-math -O3 -ftree-vectorize
- References: <bug-32681-9596@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from ubizjak at gmail dot com 2007-07-09 10:23 -------
It's a copy'n'pasto. Attached patch fixes the failure:
Index: tree-if-conv.c
===================================================================
--- tree-if-conv.c (revision 126478)
+++ tree-if-conv.c (working copy)
@@ -751,7 +751,7 @@ find_phi_replacement_condition (struct l
AND it with the incoming bb predicate. */
if (second_edge->aux)
*cond = build2 (TRUTH_AND_EXPR, boolean_type_node,
- *cond, first_edge->aux);
+ *cond, second_edge->aux);
if (TREE_CODE (*cond) == TRUTH_NOT_EXPR)
/* We can be smart here and choose inverted
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |ubizjak at gmail dot com
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2007-07-09 06:22:52 |2007-07-09 10:23:28
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32681