[Bug tree-optimization/110919] [14 Regression] Dead Code Elimination Regression at -O3 since r14-1691-gbc5a2c2e793

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Aug 20 18:41:24 GMT 2023


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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Or take:
```
_Bool g(int a, int b)
{
  b &= 1;
  _Bool t = a == b;
  _Bool e = a != 0;
  _Bool g = t & e;
  return g;
}
int g0(int a, int b)
{
  b &= 1;
  _Bool t = 1 == b;
  _Bool e = a == 1;
  _Bool g = t & e;
  return g;
}
```

These two should produce the same code generation.


More information about the Gcc-bugs mailing list