mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Pull RaiseAllocations stuff out of the CleanGCC pass into it's own pass in
the ChangeAllocations.h header file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1522 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "llvm/Transforms/CleanupGCCOutput.h"
|
||||
#include "llvm/Transforms/LevelChange.h"
|
||||
#include "llvm/Transforms/ConstantMerge.h"
|
||||
#include "llvm/Transforms/LowerAllocations.h"
|
||||
#include "llvm/Transforms/Scalar/DCE.h"
|
||||
#include "llvm/Transforms/Scalar/IndVarSimplify.h"
|
||||
#include "llvm/Transforms/Scalar/InstructionCombining.h"
|
||||
@@ -65,6 +66,7 @@ int main(int argc, char **argv) {
|
||||
//
|
||||
PassManager Passes;
|
||||
Passes.add(new DeadCodeElimination()); // Remove Dead code/vars
|
||||
Passes.add(new RaiseAllocations()); // call %malloc -> malloc inst
|
||||
Passes.add(new CleanupGCCOutput()); // Fix gccisms
|
||||
Passes.add(new InductionVariableSimplify()); // Simplify indvars
|
||||
Passes.add(new RaisePointerReferences()); // Eliminate casts
|
||||
|
Reference in New Issue
Block a user