forked from OSchip/llvm-project
[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:
parent
3a56363aec
commit
3354fe473f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue