diff options
| author | Weiming Zhao <weimingz@codeaurora.org> | 2015-11-21 06:10:20 +0000 |
|---|---|---|
| committer | Weiming Zhao <weimingz@codeaurora.org> | 2015-11-21 06:10:20 +0000 |
| commit | 8d5c08f5915545780b4244ce6fb56c11c4524266 (patch) | |
| tree | 1039abb9fd03d66f4498f473d673213780624340 /llvm/lib/Transforms | |
| parent | 41d0fa772f9a5d0c1271c7b5d6310bd1f88425ef (diff) | |
| download | bcm5719-llvm-8d5c08f5915545780b4244ce6fb56c11c4524266.tar.gz bcm5719-llvm-8d5c08f5915545780b4244ce6fb56c11c4524266.zip | |
[SimplifyLibCalls] Removed some TODOs which are already implemented. NFC.
Summary:
D14302 implements tan(atan(x)) -> x
D14045 implements pow(exp(x), y) -> exp(x*y)
Patch by Mandeep Singh Grang <mgrang@codeaurora.org>
Reviewers: majnemer, davide
Differential Revision: http://reviews.llvm.org/D14882
llvm-svn: 253768
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp index 91c56c2e231..94decae8562 100644 --- a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp @@ -2273,7 +2273,6 @@ void LibCallSimplifier::replaceAllUsesWith(Instruction *I, Value *With) { // * lround(cnst) -> cnst' // // pow, powf, powl: -// * pow(exp(x),y) -> exp(x*y) // * pow(sqrt(x),y) -> pow(x,y*0.5) // * pow(pow(x,y),z)-> pow(x,y*z) // @@ -2289,9 +2288,6 @@ void LibCallSimplifier::replaceAllUsesWith(Instruction *I, Value *With) { // * sqrt(Nroot(x)) -> pow(x,1/(2*N)) // * sqrt(pow(x,y)) -> pow(|x|,y*0.5) // -// tan, tanf, tanl: -// * tan(atan(x)) -> x -// // trunc, truncf, truncl: // * trunc(cnst) -> cnst' // |

