This commit is contained in:
Irmen de Jong 2021-12-27 02:17:04 +01:00
parent 1c10839c14
commit 371f084884
2 changed files with 2 additions and 2 deletions

View File

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

View File

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