This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug tree-optimization/34649] redundant if expression in find_conditional_asserts
- From: zhouyi zhou <zhouyi04 at ios dot cn>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 4 Jan 2008 14:16:28 +0800
- Subject: Re: [Bug tree-optimization/34649] 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 <zhouzhouyi@FreeBSD.org>
* tree-vrp.c (find_conditional_asserts): redundant if expression
Sincerely yours
Zhouyi Zhou