summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-01-21 22:31:18 +0000
committerSanjay Patel <spatel@rotateright.com>2016-01-21 22:31:18 +0000
commit0e603fc3a7b3016ee99e2be6e08ed90628ffb7ae (patch)
tree48222e9884cf5c20a1b6b1247d5da0dc3f8f5726 /llvm/lib/Transforms
parenta5d1f62d2dfb3bb19636d95f2f3416b5056cdb56 (diff)
downloadbcm5719-llvm-0e603fc3a7b3016ee99e2be6e08ed90628ffb7ae.tar.gz
bcm5719-llvm-0e603fc3a7b3016ee99e2be6e08ed90628ffb7ae.zip
remove unnecessary variable; NFC
llvm-svn: 258444
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
index da4a47810a7..b2de502cd7f 100644
--- a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
@@ -1218,7 +1218,6 @@ Value *LibCallSimplifier::optimizePow(CallInst *CI, IRBuilder<> &B) {
Value *LibCallSimplifier::optimizeExp2(CallInst *CI, IRBuilder<> &B) {
Function *Callee = CI->getCalledFunction();
- Function *Caller = CI->getParent()->getParent();
Value *Ret = nullptr;
StringRef Name = Callee->getName();
if (UnsafeFPShrink && Name == "exp2" && hasFloatVersion(Name))
@@ -1255,7 +1254,7 @@ Value *LibCallSimplifier::optimizeExp2(CallInst *CI, IRBuilder<> &B) {
if (!Op->getType()->isFloatTy())
One = ConstantExpr::getFPExtend(One, Op->getType());
- Module *M = Caller->getParent();
+ Module *M = CI->getModule();
Value *Callee =
M->getOrInsertFunction(TLI->getName(LdExp), Op->getType(),
Op->getType(), B.getInt32Ty(), nullptr);
OpenPOWER on IntegriCloud