summaryrefslogtreecommitdiff
path: root/lib/Transforms/InstCombine/InstCombineCalls.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-07-25 16:46:31 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-07-25 16:46:31 +0000
commit51004dff923259c90591621e7151408ad94e0eb8 (patch)
treee459db95fd8e0f721e3e9a7b947215bc58cee518 /lib/Transforms/InstCombine/InstCombineCalls.cpp
parentc338fe082860989d89b51520042a5f447339eb8c (diff)
downloadllvm-51004dff923259c90591621e7151408ad94e0eb8.tar.gz
llvm-51004dff923259c90591621e7151408ad94e0eb8.tar.bz2
llvm-51004dff923259c90591621e7151408ad94e0eb8.tar.xz
make all Emit*() functions consult the TargetLibraryInfo information before creating a call to a library function.
Update all clients to pass the TLI information around. Previous draft reviewed by Eli. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineCalls.cpp')
-rw-r--r--lib/Transforms/InstCombine/InstCombineCalls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCalls.cpp b/lib/Transforms/InstCombine/InstCombineCalls.cpp
index c1d9d01c8d..d34fab103f 100644
--- a/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -795,7 +795,7 @@ Instruction *InstCombiner::tryOptimizeCall(CallInst *CI, const TargetData *TD) {
if (CI->getCalledFunction() == 0) return 0;
InstCombineFortifiedLibCalls Simplifier(this);
- Simplifier.fold(CI, TD);
+ Simplifier.fold(CI, TD, TLI);
return Simplifier.NewInstruction;
}