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/32681] ice for legal C code with flags -ffast-math -O3 -ftree-vectorize



------- 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


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