------- Comment #2 from zhouyi04 at ios dot cn  2008-01-04 06:31 -------
Subject: Re:  redundant if expression in
 find_conditional_asserts

Hey ubizjak!
   Please provide a regression test for me, it is the first time I have a 
chance to patch gcc, Thanks a lot :)

Patch against gcc-4.3.0
--- gcc/tree-vrp.c~     Sun Apr 15 00:10:41 2007
+++ gcc/tree-vrp.c      Fri Jan  4 09:24:24 2008
@@ -3649,8 +3649,7 @@
       /* Traverse the strictly dominated sub-graph rooted at E->DEST
         to determine if any of the operands in the conditional
         predicate are used.  */
-      if (e->dest != bb)
-       need_assert |= find_assert_locations (e->dest);
+      need_assert |= find_assert_locations (e->dest);

       /* Register the necessary assertions for each operand in the
         conditional predicate.  */

ChangeLog Entry
2008-01-04  Zhouyi Zhou  <[EMAIL PROTECTED]>

        * tree-vrp.c (find_conditional_asserts): redundant if expression

Sincerely yours
Zhouyi Zhou


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34649

Reply via email to