https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47004

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=102138

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note we don;t optimize at -O1 yet, that is PR 102138.


With this code:
int g(); int h();

int lenzero1(int f, int l) {
 if ( len(f, l) == 0)
   return g();
  return h();
}
We can optimize this one at -O1 since GCC 8 with DOM optimizing it out the
second conditional (I did not look to see what fixed it though).

Reply via email to