This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/19098] tree-ssa-dom.c has an "if" statement whose condition is probably wrong
- From: "law at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Dec 2004 07:34:08 -0000
- Subject: [Bug tree-optimization/19098] tree-ssa-dom.c has an "if" statement whose condition is probably wrong
- References: <20041221055923.19098.kazu@cs.umass.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From law at redhat dot com 2004-12-21 07:34 -------
Subject: Re: New: tree-ssa-dom.c has an "if"
statement whose condition is probably wrong
On Tue, 2004-12-21 at 05:59 +0000, kazu at cs dot umass dot edu wrote:
> tree-ssa-dom.c has the following
>
> if (!e->flags & EDGE_DFS_BACK)
>
> which is always 0 because !e->flags is always 0 or 1, and
> EDGE_DFS_BACK is 32.
That should be
!(e->flags & EDGE_DFS_BACK)
FWIW, this bug shouldn't affect correctness in any way -- it's merely
avoiding a pessimization.
jef
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19098