mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +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:
parent
e5cf823b54
commit
e94525575f
@ -64,7 +64,7 @@ int main(int argc, char **argv) {
|
||||
// a little bit. Do this now.
|
||||
//
|
||||
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 CleanupGCCOutput()); // Fix gccisms
|
||||
Passes.add(new InductionVariableSimplify()); // Simplify indvars
|
||||
|
Loading…
x
Reference in New Issue
Block a user