diff --git a/numba_rvsdg/core/datastructures/ast_transforms.py b/numba_rvsdg/core/datastructures/ast_transforms.py index f5fd1c4..9714184 100644 --- a/numba_rvsdg/core/datastructures/ast_transforms.py +++ b/numba_rvsdg/core/datastructures/ast_transforms.py @@ -378,12 +378,6 @@ def handle_if(self, node: ast.If) -> None: def handle_while(self, node: ast.While) -> None: """Handle while statement.""" - # If the current block already has instructions, we need a new block as - # header. Otherwise just re-use the current_block. This happens - # when the previous statement was an if-statement with an empty - # endif_block, for example. This is possible because the Python - # while-loop does not need to modify it's preheader. - # Preallocate header, body, else and exiting indices. # (Technically, we could re-use the current block as header if it is # still empty. We elect to potentially leave a block empty instead,