[Bug tree-optimization/110539] [14 Regression] Dead Code Elimination Regression at since r14-338-g1dd154f6407
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 6 21:45:18 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110539
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is a testcase for the missing optimization (at -O1) which is optimized at
the RTL level (for some targets but not all):
```
int f(int a)
{
int b = a & 1;
int c = b != 0;
return c == b;
}
```
Though it does optimize at -O2 because VRP changes: `b != 0` into `(_Bool)
b_4`.
More information about the Gcc-bugs
mailing list