[SimplifyLibCalls] Fix a typo
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 26 Aug 2015 18:30:16 +0000 (18:30 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 26 Aug 2015 18:30:16 +0000 (18:30 +0000)
cbrt(sqrt(x)) calculates the sixth root, not the ninth root.
cbrt(cbrt(x)) calculates the ninth root.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246046 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/SimplifyLibCalls.cpp

index 46b554b0341b435fba2795124beb9b256561acf6..6bcbde756bc15b65bd460947a2685a4a51601545 100644 (file)
@@ -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