This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/7269: Inlining may not eliminate unnecessary tests and branches.
- From: "Andy Freeman" <anamax at earthlink dot net>
- To: <ebotcazou at gcc dot gnu dot org>,<anamax at earthlink dot net>,<gcc-bugs at gcc dot gnu dot org>,<gcc-prs at gcc dot gnu dot org>,<nobody at gcc dot gnu dot org>,<gcc-gnats at gcc dot gnu dot org>
- Date: Wed, 19 Feb 2003 06:43:40 -0800
- Subject: Re: optimization/7269: Inlining may not eliminate unnecessary tests and branches.
- References: <20030219092614.16226.qmail@sources.redhat.com>
I'm no longer in a position to produce the code.
The specific example looked like:
struct foo {
int f(int i) {
... // no branches or returns
if( 0 = i ) {
return 17;
}
...
}
};
int bar(...) {
foo f;
if( f.f(0) ) { // the branch in f was eliminated by constant propagation
.... // but the branch testing f's return value was not.
}
}
----- Original Message -----
From: <ebotcazou at gcc dot gnu dot org>
To: <anamax at earthlink dot net>; <gcc-bugs at gcc dot gnu dot org>; <gcc-prs at gcc dot gnu dot org>; <nobody at gcc dot gnu dot org>
Sent: Wednesday, February 19, 2003 1:26 AM
Subject: Re: optimization/7269: Inlining may not eliminate unnecessary tests and branches.
> Synopsis: Inlining may not eliminate unnecessary tests and branches.
>
> State-Changed-From-To: open->feedback
> State-Changed-By: ebotcazou
> State-Changed-When: Wed Feb 19 09:26:14 2003
> State-Changed-Why:
> Sample code requested for 5 months.
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7269