projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cc0c43
)
[SimplifyLibCalls] Don't hardcode the function name.
author
Davide Italiano
<davide@freebsd.org>
Fri, 6 Nov 2015 21:05:07 +0000
(21:05 +0000)
committer
Davide Italiano
<davide@freebsd.org>
Fri, 6 Nov 2015 21:05:07 +0000
(21:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252342
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/SimplifyLibCalls.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/SimplifyLibCalls.cpp
b/lib/Transforms/Utils/SimplifyLibCalls.cpp
index 76a28e13bafe29fcd974b2a4d3b28eb2132036f1..2eb9938955e89cb343f5361d2f99551bcb0b11df 100644
(file)
--- a/
lib/Transforms/Utils/SimplifyLibCalls.cpp
+++ b/
lib/Transforms/Utils/SimplifyLibCalls.cpp
@@
-1093,7
+1093,8
@@
Value *LibCallSimplifier::optimizePow(CallInst *CI, IRBuilder<> &B) {
if (Op1C->isExactlyValue(2.0) &&
hasUnaryFloatFn(TLI, Op1->getType(), LibFunc::exp2, LibFunc::exp2f,
LibFunc::exp2l))
- return EmitUnaryFloatFnCall(Op2, "exp2", B, Callee->getAttributes());
+ return EmitUnaryFloatFnCall(Op2, TLI->getName(LibFunc::exp2), B,
+ Callee->getAttributes());
// pow(10.0, x) -> exp10(x)
if (Op1C->isExactlyValue(10.0) &&
hasUnaryFloatFn(TLI, Op1->getType(), LibFunc::exp10, LibFunc::exp10f,