diff --git a/compiler/src/prog8/compiler/intermediate/IntermediateProgram.kt b/compiler/src/prog8/compiler/intermediate/IntermediateProgram.kt index 7628b0d1c..4c5b3ee6b 100644 --- a/compiler/src/prog8/compiler/intermediate/IntermediateProgram.kt +++ b/compiler/src/prog8/compiler/intermediate/IntermediateProgram.kt @@ -69,7 +69,7 @@ class IntermediateProgram(val name: String, var loadAddress: Int, val heap: Heap optimizeMultipleSequentialLineInstrs() optimizeCallReturnIntoJump() optimizeConditionalBranches() - // todo: add more optimizations to intermediate code! such as: pop X + push X -> peek X (might require new opcodes) + // todo: add more optimizations to intermediate code! optimizeRemoveNops() // must be done as the last step optimizeMultipleSequentialLineInstrs() // once more