https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95113
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu.org,
| |jamborm at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
int a, b;
static inline long int
foo (long int x, int y)
{
if (y == 0)
return 0;
if (x == -1 && y == -1)
return 0;
return x / y;
}
static inline int
bar (int *p)
{
int c = foo (a, 1) + *p;
return b;
}
int
main ()
{
int d = 0;
b = foo (1, 1);
bar (&d);
return 0;
}
Guess dup of the other PR where the IPA opts assume DCE which doesn't really
happen (the *p load result is never used).