[llvm] r246046 - [SimplifyLibCalls] Fix a typo
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 26 11:30:16 PDT 2015
Author: majnemer
Date: Wed Aug 26 13:30:16 2015
New Revision: 246046
URL: http://llvm.org/viewvc/llvm-project?rev=246046&view=rev
Log:
[SimplifyLibCalls] Fix a typo
cbrt(sqrt(x)) calculates the sixth root, not the ninth root.
cbrt(cbrt(x)) calculates the ninth root.
Modified:
llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp
Modified: llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp?rev=246046&r1=246045&r2=246046&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp Wed Aug 26 13:30:16 2015
@@ -2202,7 +2202,7 @@ void LibCallSimplifier::replaceAllUsesWi
// cbrt:
// * cbrt(expN(X)) -> expN(x/3)
// * cbrt(sqrt(x)) -> pow(x,1/6)
-// * cbrt(sqrt(x)) -> pow(x,1/9)
+// * cbrt(cbrt(x)) -> pow(x,1/9)
//
// exp, expf, expl:
// * exp(log(x)) -> x
More information about the llvm-commits
mailing list