This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/34649] redundant if expression in find_conditional_asserts
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jan 2008 16:10:48 -0000
- Subject: [Bug tree-optimization/34649] redundant if expression in find_conditional_asserts
- References: <bug-34649-14209@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from ubizjak at gmail dot com 2008-01-03 16:10 -------
(In reply to comment #0)
> /*gcc/tree-vrp.c */
>
> 3603 static bool
> 3604 find_conditional_asserts (basic_block bb, tree last)
> 3605 {
> ...
> if (e->dest == bb)
> 3623 continue;
> ...
> 3652 if (e->dest != bb)
> 3653 need_assert |= find_assert_locations (e->dest);
Please post a patch (including a ChangeLog entry) to gcc-patches@gcc.gnu.org
mailing list. I'll regression test the patch for you, if you are not (yet)
familiar with testing procedure.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34649