summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-12-08 20:28:33 +0000
committerManman Ren <manman.ren@gmail.com>2013-12-08 20:28:33 +0000
commit81860460283c15df3bf492e51c1b4e1b34b08592 (patch)
tree4debbf59bbf85e3be3d6a540ba42626b5ac1dee3 /lib/Transforms
parent9bdfe3644f5b2d28bb3b368daab6ce78b8a973b8 (diff)
downloadllvm-81860460283c15df3bf492e51c1b4e1b34b08592.tar.gz
llvm-81860460283c15df3bf492e51c1b4e1b34b08592.tar.bz2
llvm-81860460283c15df3bf492e51c1b4e1b34b08592.tar.xz
Revert 196544 due to internal bot failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Utils/SimplifyLibCalls.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Transforms/Utils/SimplifyLibCalls.cpp b/lib/Transforms/Utils/SimplifyLibCalls.cpp
index b555cf8bdd..15b3e66f94 100644
--- a/lib/Transforms/Utils/SimplifyLibCalls.cpp
+++ b/lib/Transforms/Utils/SimplifyLibCalls.cpp
@@ -1162,12 +1162,6 @@ struct PowOpt : public UnsafeFPLibCallOptimization {
hasUnaryFloatFn(TLI, Op1->getType(), LibFunc::exp2, LibFunc::exp2f,
LibFunc::exp2l))
return EmitUnaryFloatFnCall(Op2, "exp2", B, Callee->getAttributes());
- // pow(10.0, x) -> exp10(x)
- if (Op1C->isExactlyValue(10.0) &&
- hasUnaryFloatFn(TLI, Op1->getType(), LibFunc::exp10, LibFunc::exp10f,
- LibFunc::exp10l))
- return EmitUnaryFloatFnCall(Op2, TLI->getName(LibFunc::exp10), B,
- Callee->getAttributes());
}
ConstantFP *Op2C = dyn_cast<ConstantFP>(Op2);