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

Steve Canon via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 17 04:52:34 PST 2015


scanon added a comment.

Hence the "something like".  We should really just be able to pull and integer value out of APFloat (but again, outside the scope of this change).  Short-term, I think you can use V.convert(APFloat::IEEEdouble, ...) to get something that *can* be converted to double.


http://reviews.llvm.org/D13994





More information about the llvm-commits mailing list