[llvm] r258444 - remove unnecessary variable; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 21 14:31:18 PST 2016
Author: spatel
Date: Thu Jan 21 16:31:18 2016
New Revision: 258444
URL: http://llvm.org/viewvc/llvm-project?rev=258444&view=rev
Log:
remove unnecessary variable; NFC
Modified:
llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp
Modified: llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp?rev=258444&r1=258443&r2=258444&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp Thu Jan 21 16:31:18 2016
@@ -1218,7 +1218,6 @@ Value *LibCallSimplifier::optimizePow(Ca
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(C
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);
More information about the llvm-commits
mailing list