Skip to content
Snippets Groups Projects
Commit b9b5d6dd authored by Chris Lattner's avatar Chris Lattner
Browse files

Delete the IPO simplify-libcalls and completely reimplement it as

a FunctionPass.  This makes it simpler, fixes dozens of bugs, adds
a couple of minor features, and shrinks is considerably: from
2214 to 1437 lines.

llvm-svn: 50520
parent 0ceb8807
No related branches found
No related tags found
No related merge requests found
...@@ -159,11 +159,6 @@ FunctionPass *createSingleLoopExtractorPass(); ...@@ -159,11 +159,6 @@ FunctionPass *createSingleLoopExtractorPass();
/// ///
ModulePass *createBlockExtractorPass(const std::vector<BasicBlock*> &BTNE); ModulePass *createBlockExtractorPass(const std::vector<BasicBlock*> &BTNE);
/// createOptimizeWellKnownCallsPass - This pass optimizes specific calls to
/// specific well-known (library) functions.
ModulePass *createSimplifyLibCallsPass();
/// createIndMemRemPass - This pass removes potential indirect calls of /// createIndMemRemPass - This pass removes potential indirect calls of
/// malloc and free /// malloc and free
ModulePass *createIndMemRemPass(); ModulePass *createIndMemRemPass();
......
...@@ -323,6 +323,12 @@ FunctionPass *createMemCpyOptPass(); ...@@ -323,6 +323,12 @@ FunctionPass *createMemCpyOptPass();
// can prove are dead. // can prove are dead.
// //
LoopPass *createLoopDeletionPass(); LoopPass *createLoopDeletionPass();
//===----------------------------------------------------------------------===//
//
/// createSimplifyLibCallsPass - This pass optimizes specific calls to
/// specific well-known (library) functions.
FunctionPass *createSimplifyLibCallsPass();
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// //
......
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment