mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-13 08:26:02 +00:00
Only run DeadInst elimination early, because it is quick and painless and
pipelines well git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1549 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -64,7 +64,7 @@ int main(int argc, char **argv) {
|
|||||||
// a little bit. Do this now.
|
// a little bit. Do this now.
|
||||||
//
|
//
|
||||||
PassManager Passes;
|
PassManager Passes;
|
||||||
Passes.add(new DeadCodeElimination()); // Remove Dead code/vars
|
Passes.add(new DeadInstElimination()); // Remove Dead code/vars
|
||||||
Passes.add(new RaiseAllocations()); // call %malloc -> malloc inst
|
Passes.add(new RaiseAllocations()); // call %malloc -> malloc inst
|
||||||
Passes.add(new CleanupGCCOutput()); // Fix gccisms
|
Passes.add(new CleanupGCCOutput()); // Fix gccisms
|
||||||
Passes.add(new InductionVariableSimplify()); // Simplify indvars
|
Passes.add(new InductionVariableSimplify()); // Simplify indvars
|
||||||
|
Reference in New Issue
Block a user