This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH/RFC] Use powi as canonical form for x*x



On Mar 14, 2005, at 4:57 PM, Richard Guenther wrote:


This patch uses powi for canonicalization of multiplication chains rather than pow. It also moves this transformations from unsafe-math-optimization to default. This is of course the questionable
part of the patch. Is it f.i. ok to transform x*x*x*x to y=x*x, y*y?
I.e. with this patch we may reduce the number of multiplications.

No.


-- Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]