[Bug tree-optimization/19098] tree-ssa-dom.c has an "if" statement whose condition is probably wrong
law at redhat dot com
gcc-bugzilla@gcc.gnu.org
Tue Dec 21 07:34:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list