This commit is contained in:
Irmen de Jong 2019-04-13 00:58:39 +02:00
parent 5497de4234
commit 730e08698d

View File

@ -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