[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

Reid Spencer reid at x10sys.com
Mon Apr 25 14:20:48 PDT 2005



Changes in directory llvm/lib/Transforms/IPO:

SimplifyLibCalls.cpp updated: 1.3 -> 1.4
---
Log message:

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)


---
Diffs of the changes:  (+1 -4)

 SimplifyLibCalls.cpp |    5 +----
 1 files changed, 1 insertion(+), 4 deletions(-)


Index: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
diff -u llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.3 llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.4
--- llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.3	Mon Apr 25 16:11:48 2005
+++ llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp	Mon Apr 25 16:20:38 2005
@@ -104,10 +104,7 @@
   }
 
   /// Make sure we get our virtual table in this file.
-  CallOptimizer::~CallOptimizer() 
-  {
-    optlist.clear();
-  }
+  CallOptimizer::~CallOptimizer() { }
 }
 
 ModulePass *llvm::createSimplifyLibCallsPass() 






More information about the llvm-commits mailing list