This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23282] [4.0 Regression] wrong results at -O on x86
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Aug 2005 08:44:55 -0000
- Subject: [Bug tree-optimization/23282] [4.0 Regression] wrong results at -O on x86
- References: <20050808062659.23282.jv244@cam.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From steven at gcc dot gnu dot org 2005-08-08 08:44 -------
GCC 4.0.2 (CVS) does this:
ivcanon dump:
# b_9 = PHI <b_3(1)>;
<L2>:;
if (b_9 != -1) goto <L3>; else goto <L4>;
<L3>:;
printf (&"%d\n"[0], b_9);
abort ();
.ivopts dump:
# b_9 = PHI <b_3(1)>;
<L2>:;
if (b_9 != -1) goto <L3>; else goto <L4>;
<L3>:;
printf (&"%d\n"[0], b_9);
abort ();
Looks like final value replacement screws up.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23282