This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: optimization/7269: Inlining may not eliminate unnecessary tests and branches.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]