This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13869] [tree-ssa] wrong code with a simple loop
- From: "law at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Feb 2004 21:32:46 -0000
- Subject: [Bug optimization/13869] [tree-ssa] wrong code with a simple loop
- References: <20040126203538.13869.stefaandr@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From law at redhat dot com 2004-02-11 21:32 -------
Subject: Re: [tree-ssa] wrong code with a simple loop
In message <20040128212153.4623.qmail@sources.redhat.com>, "steven at gcc dot g
nu dot org" writes:
>
>------- Additional Comments From steven at gcc dot gnu dot org 2004-01-28 21
>:21 -------
>With optimization we also return 0 AFAICT.
>Something looks strange in DOM1, but the results look OK.
>
>After DCE1 we have the following tree:
[ ... ]
BTW, with my changes from this afternoon, cc1plus will compile this code
down to a simple "return 0".
jeff
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13869