aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-04-25 21:20:38 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-04-25 21:20:38 +0000
commit855adb1ac449d6a8c5d686a21953e0a4f6279ddc (patch)
tree7370eba60802947b21ff19e41689aea8104b858f
parent229ab2e7b24847ea0d248d3d8b3d83adc8e5f5fe (diff)
Changes due to code review and new implementation:
* Don't use std::string for the function names, const char* will suffice * Allow each CallOptimizer to validate the function signature before doing anything * Repeatedly loop over the functions until an iteration produces no more optimizations. This allows one optimization to insert a call that is optimized by another optimization. * Implement the ConstantArray portion of the StrCatOptimization * Provide a template for the MemCpyOptimization * Make ExitInMainOptimization split the block, not delete everything after the return instruction. (This covers revision 1.3 and 1.4, as the 1.3 comments were botched) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21548 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/IPO/SimplifyLibCalls.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Transforms/IPO/SimplifyLibCalls.cpp b/lib/Transforms/IPO/SimplifyLibCalls.cpp
index 683cf23e84..d07696b49d 100644
--- a/lib/Transforms/IPO/SimplifyLibCalls.cpp
+++ b/lib/Transforms/IPO/SimplifyLibCalls.cpp
@@ -104,10 +104,7 @@ namespace {
}
/// Make sure we get our virtual table in this file.
- CallOptimizer::~CallOptimizer()
- {
- optlist.clear();
- }
+ CallOptimizer::~CallOptimizer() { }
}
ModulePass *llvm::createSimplifyLibCallsPass()