From 21d4d3252fe12f559b2c1bcfd2b7817d96740955 Mon Sep 17 00:00:00 2001 From: Karol Stasiak Date: Sun, 16 May 2021 00:40:12 +0200 Subject: [PATCH] Remove debugging statements --- .../assembly/m6809/opt/AlwaysGoodMOptimizations.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/scala/millfork/assembly/m6809/opt/AlwaysGoodMOptimizations.scala b/src/main/scala/millfork/assembly/m6809/opt/AlwaysGoodMOptimizations.scala index d8c5d782..ae735eb5 100644 --- a/src/main/scala/millfork/assembly/m6809/opt/AlwaysGoodMOptimizations.scala +++ b/src/main/scala/millfork/assembly/m6809/opt/AlwaysGoodMOptimizations.scala @@ -30,10 +30,10 @@ object AlwaysGoodMOptimizations { val PointlessCompare = new RuleBasedAssemblyOptimization("Pointless compare", needsFlowInfo = FlowInfoRequirement.BackwardFlow, - (HasOpcodeIn(LDA, ANDA, ORA, EORA, ADDA, ADCA, SUBA, SBCA)) ~ DebugMatching ~ - (Elidable & HasOpcode(CMPA) & HasImmediate(0) & DoesntMatterWhatItDoesWith(MState.VF, MState.CF, MState.HF)) ~ DebugMatching ~~> {code => code.init}, - (HasOpcodeIn(LDB, ANDB, ORB, EORB, ADDB, ADCB, SUBB, SBCB)) ~ DebugMatching ~ - (Elidable & HasOpcode(CMPB) & HasImmediate(0) & DoesntMatterWhatItDoesWith(MState.VF, MState.CF, MState.HF)) ~ DebugMatching ~~> {code => code.init}, + (HasOpcodeIn(LDA, ANDA, ORA, EORA, ADDA, ADCA, SUBA, SBCA)) ~ + (Elidable & HasOpcode(CMPA) & HasImmediate(0) & DoesntMatterWhatItDoesWith(MState.VF, MState.CF, MState.HF)) ~~> {code => code.init}, + (HasOpcodeIn(LDB, ANDB, ORB, EORB, ADDB, ADCB, SUBB, SBCB)) ~ + (Elidable & HasOpcode(CMPB) & HasImmediate(0) & DoesntMatterWhatItDoesWith(MState.VF, MState.CF, MState.HF)) ~~> {code => code.init}, ) val SimplifiableZeroStore = new RuleBasedAssemblyOptimization("Simplifiable zero store",