From 27c6c3fb8651a72a63928746b6e96a83f4fc770c Mon Sep 17 00:00:00 2001 From: Jesper Gravgaard Date: Mon, 20 May 2019 10:54:06 +0200 Subject: [PATCH] Rafactoring pass 2 --- src/main/java/dk/camelot64/kickc/Compiler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/dk/camelot64/kickc/Compiler.java b/src/main/java/dk/camelot64/kickc/Compiler.java index d988613f4..252e07f27 100644 --- a/src/main/java/dk/camelot64/kickc/Compiler.java +++ b/src/main/java/dk/camelot64/kickc/Compiler.java @@ -250,16 +250,16 @@ public class Compiler { optimizations.add(new Pass2ConstantRValueConsolidation(program)); optimizations.add(new Pass2ConstantIdentification(program)); optimizations.add(new Pass2ConstantValues(program)); - optimizations.add(new PassNStatementIndices(program)); - optimizations.add(new PassNVariableReferenceInfos(program)); + optimizations.add(new Pass2ConstantCallPointerIdentification(program)); optimizations.add(new Pass2ConstantIfs(program)); optimizations.add(new Pass2ConstantStringConsolidation(program)); + optimizations.add(new PassNStatementIndices(program)); + optimizations.add(new PassNVariableReferenceInfos(program)); optimizations.add(new Pass2FixInlineConstructorsNew(program)); optimizations.add(new PassNAddTypeConversionAssignment(program)); optimizations.add(new Pass2EliminateRedundantCasts(program)); optimizations.add(new Pass2RangeResolving(program)); optimizations.add(new Pass2ComparisonOptimization(program)); - optimizations.add(new Pass2ConstantCallPointerIdentification(program)); optimizations.add(new Pass2InlineCast(program)); optimizations.add(new PassNCastSimplification(program)); optimizations.add(new Pass2InlineDerefIdx(program));