mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 21:53:12 +08:00
[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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user