[PATCH] PR 42327: Add checks for sqrt optab being present before doing pow (x, 0.75) optimization
Paolo Bonzini
bonzini@gnu.org
Wed Dec 8 11:10:00 GMT 2010
On 12/07/2010 06:38 PM, Michael Meissner wrote:
> * builtins.c (expand_builtin_pow_root): Don't optimize pow(x,y)
> where y is 0.25, 1./6., or 0.75 if the target does not have a sqrt
> instruction, but do optimize if y is 0.5 or 1./6. since that
^^^^^
Did you mean 1./3. here?
> changes an expensive call into a cheaper one.
Paolo
More information about the Gcc-patches
mailing list