mirror of
https://github.com/irmen/prog8.git
synced 2026-10-24 18:02:40 +00:00
about bool
This commit is contained in:
1 parent
fee58e98c5
commit
beea6bc794
2 files changed
+21
-12
No files matched your search
@@ -41,12 +41,13 @@ internal class VmPeepholeOptimizer(private val vmprog: AssemblyProgram, private
|
||||
var changed = false
|
||||
indexedInstructions.forEach { (idx, ins) ->
|
||||
|
||||
// TODO: detect multiple loads to the same target, only keep first
|
||||
// TODO: detect multiple stores to the same target, only keep first
|
||||
// TODO: detect multiple ffrom/fto to the same target, only keep first
|
||||
// TODO: detect multiple loads to the same target registers, only keep first (if source is not I/O memory)
|
||||
// TODO: detect multiple stores to the same target, only keep first (if target is not I/O memory)
|
||||
// TODO: detect multiple float ffrom/fto to the same target, only keep first
|
||||
// TODO: detect multiple sequential rnd with same reg1, only keep one
|
||||
// TODO: double same xors/nots/negs, remove the pair completely as they cancel out
|
||||
// TODO: multiple same ands, ors, only keep first
|
||||
// TODO: detect subsequent same xors/nots/negs, remove the pairs completely as they cancel out
|
||||
// TODO: detect multiple same ands, ors; only keep first
|
||||
// ...
|
||||
}
|
||||
return changed
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user