summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-08-26 18:30:16 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-08-26 18:30:16 +0000
commit3354fe473f508d213331ebe8d183115fefdc9bf4 (patch)
treefecc072a70446eeeec04a3ecaabce9854c5032ab /llvm/lib/Transforms
parent3a56363aec649ad040dc548772628f444384d8e8 (diff)
downloadbcm5719-llvm-3354fe473f508d213331ebe8d183115fefdc9bf4.tar.gz
bcm5719-llvm-3354fe473f508d213331ebe8d183115fefdc9bf4.zip
[SimplifyLibCalls] Fix a typo
cbrt(sqrt(x)) calculates the sixth root, not the ninth root. cbrt(cbrt(x)) calculates the ninth root. llvm-svn: 246046
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
index 46b554b0341..6bcbde756bc 100644
--- a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
@@ -2202,7 +2202,7 @@ void LibCallSimplifier::replaceAllUsesWith(Instruction *I, Value *With) {
// 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
OpenPOWER on IntegriCloud