[PATCH] D13994: Optimization for pow(x, n) where n is some constant

escha via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 25 20:16:53 PDT 2015


escha added a comment.

It is NP-complete, but that's only for the general case; in practice you really only need to list a few common cases (it's not like we need to calculate optimal chains for pow(x, 1723)).


http://reviews.llvm.org/D13994





More information about the llvm-commits mailing list