[Bug tree-optimization/106164] (a > b) & (a >= b) does not get optimized until reassoc1

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Nov 5 06:08:53 GMT 2023


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://github.com/llvm/llv
                   |                            |m-project/issues/63751

--- Comment #23 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Another one:
```
int foo(int a)
{
  int t = (a >= -1);
  return t & (a < 0);
}
```

This is `a == -1`

I noticed this from
https://github.com/llvm/llvm-project/issues/63751


More information about the Gcc-bugs mailing list