py/compile: Remove comment about TODO for short circuiting for if-stmt.
Short circuiting is handled correctly by c_if_cond, and constants within short-circuit expressions are optimised by the parser.
This commit is contained in:
parent
a4f96c8c2a
commit
e6cf5fb2cc
@ -1203,8 +1203,6 @@ STATIC void compile_assert_stmt(compiler_t *comp, mp_parse_node_struct_t *pns) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
STATIC void compile_if_stmt(compiler_t *comp, mp_parse_node_struct_t *pns) {
|
STATIC void compile_if_stmt(compiler_t *comp, mp_parse_node_struct_t *pns) {
|
||||||
// TODO proper and/or short circuiting
|
|
||||||
|
|
||||||
uint l_end = comp_next_label(comp);
|
uint l_end = comp_next_label(comp);
|
||||||
|
|
||||||
// optimisation: don't emit anything when "if False"
|
// optimisation: don't emit anything when "if False"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user