mirror of
https://github.com/irmen/prog8.git
synced 2024-12-25 08:29:25 +00:00
comment
This commit is contained in:
parent
1c10839c14
commit
371f084884
@ -1608,9 +1608,8 @@ $label nop""")
|
||||
}
|
||||
|
||||
|
||||
|
||||
private fun translateComparisonExpressionWithJumpIfFalse(expr: BinaryExpression, jumpIfFalseLabel: String) {
|
||||
// This is a helper routine called from while, do-util, and if expressions to generate optimized conditional branching code.
|
||||
// This is a helper routine called from if expressions to generate optimized conditional branching code.
|
||||
// First, if it is of the form: <constvalue> <comparison> X , then flip the expression so the constant is always the right operand.
|
||||
|
||||
var left = expr.left
|
||||
|
@ -3,6 +3,7 @@ TODO
|
||||
|
||||
For next compiler release (7.6)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
change desugar of while loop so that no initial jump is required
|
||||
optimize ifs containing only a jump: reuse old code from AsmGen translateComparisonExpressionWithJumpIfFalse?
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user