mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
Add an optimization stub
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
564de7d79b
commit
113b2ffd35
@ -32,8 +32,8 @@ static inline bool ApplyOptToAllMethods(Module *C, bool (*Opt)(Method*)) {
|
||||
//
|
||||
|
||||
bool DoDeadCodeElimination(Method *M); // DCE a method
|
||||
bool DoRemoveUnusedConstants(SymTabValue *S); // RUC a method or class
|
||||
bool DoDeadCodeElimination(Module *C); // DCE & RUC a whole class
|
||||
bool DoRemoveUnusedConstants(SymTabValue *S); // RUC a method or module
|
||||
bool DoDeadCodeElimination(Module *C); // DCE & RUC a whole module
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Constant Propogation Pass
|
||||
@ -92,4 +92,16 @@ static inline bool DoSymbolStripping(Module *M) {
|
||||
//
|
||||
bool DoFullSymbolStripping(Module *M);
|
||||
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Induction Variable Cannonicalization
|
||||
//
|
||||
|
||||
// DoInductionVariableCannonicalize - Simplify induction variables in loops
|
||||
//
|
||||
bool DoInductionVariableCannonicalize(Method *M);
|
||||
static inline bool DoInductionVariableCannonicalize(Module *M) {
|
||||
return ApplyOptToAllMethods(M, DoInductionVariableCannonicalize);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user