diff options
author | Chris Lattner <sabre@nondot.org> | 2008-05-01 06:25:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-05-01 06:25:24 +0000 |
commit | 993fd31e0f17cd6f6408ebd6593f6dd026f2f621 (patch) | |
tree | 97c06df8a7a6e2792fdf3f9523324af2afc839d3 /include | |
parent | 6abb36c684c7dcd82f7b389f2ecc769023422506 (diff) | |
download | external_llvm-993fd31e0f17cd6f6408ebd6593f6dd026f2f621.zip external_llvm-993fd31e0f17cd6f6408ebd6593f6dd026f2f621.tar.gz external_llvm-993fd31e0f17cd6f6408ebd6593f6dd026f2f621.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Transforms/IPO.h | 5 | ||||
-rw-r--r-- | include/llvm/Transforms/Scalar.h | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h index 3c5353a..7d98dfe 100644 --- a/include/llvm/Transforms/IPO.h +++ b/include/llvm/Transforms/IPO.h @@ -159,11 +159,6 @@ FunctionPass *createSingleLoopExtractorPass(); /// 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 /// malloc and free ModulePass *createIndMemRemPass(); diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h index 1098405..f350a51 100644 --- a/include/llvm/Transforms/Scalar.h +++ b/include/llvm/Transforms/Scalar.h @@ -323,6 +323,12 @@ FunctionPass *createMemCpyOptPass(); // can prove are dead. // LoopPass *createLoopDeletionPass(); + +//===----------------------------------------------------------------------===// +// +/// createSimplifyLibCallsPass - This pass optimizes specific calls to +/// specific well-known (library) functions. +FunctionPass *createSimplifyLibCallsPass(); //===----------------------------------------------------------------------===// // |