diff options
| author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-07-25 16:46:31 +0000 |
|---|---|---|
| committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-07-25 16:46:31 +0000 |
| commit | 89702e94b50c27a18b2b946f9c73901754d0d649 (patch) | |
| tree | 9ef96f47233f36f4bf46ce9acfc2358715dac49b /llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp | |
| parent | 1a60141f99ce4a36c2ba678a75fa193999b9978b (diff) | |
| download | bcm5719-llvm-89702e94b50c27a18b2b946f9c73901754d0d649.tar.gz bcm5719-llvm-89702e94b50c27a18b2b946f9c73901754d0d649.zip | |
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.
llvm-svn: 160733
Diffstat (limited to 'llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp index 277c4d58f93..f425cd03be6 100644 --- a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp @@ -610,7 +610,7 @@ bool CodeGenPrepare::OptimizeCallInst(CallInst *CI) { // that have the default "don't know" as the objectsize. Anything else // should be left alone. CodeGenPrepareFortifiedLibCalls Simplifier; - return Simplifier.fold(CI, TD); + return Simplifier.fold(CI, TD, TLInfo); } /// DupRetToEnableTailCallOpts - Look for opportunities to duplicate return |

