[PATCH] D13994: [SimplifyLibCalls] Optimization for pow(x, n) where n is some constant
Mandeep Singh Grang via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 9 14:12:39 PST 2015
mgrang marked an inline comment as done.
mgrang added a comment.
I have limited the transformation to a max of 8 fmuls (thus max exponent=32).
Using addition-chains can reduce the no. of fmuls in few cases but storing the addition-chains for each exponent will incur space overhead.
The current implementation of exponentiation by binary expansion seems much cleaner IMO.
http://reviews.llvm.org/D13994
More information about the llvm-commits
mailing list