[Bug tree-optimization/95423] Failure to optimize separated multiplications by x and square of x
gabravier at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri May 29 20:01:23 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95423
--- Comment #1 from Gabriel Ravier <gabravier at gmail dot com> ---
I've hit a similar thing with this function :
int f(int x)
{
return (x * x * x) - (3 * x) - 1;
}
Which can be optimized to `return (((x * x) - 3) * x) - 1;`, but isn't
More information about the Gcc-bugs
mailing list