mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-29 13:24:25 +00:00
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
This commit is contained in:
@ -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();
|
|||||||
// 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();
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
//
|
//
|
||||||
|
File diff suppressed because it is too large
Load Diff
1437
lib/Transforms/Scalar/SimplifyLibCalls.cpp
Normal file
1437
lib/Transforms/Scalar/SimplifyLibCalls.cpp
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user