diff --git a/numba_rvsdg/core/datastructures/byte_flow.py b/numba_rvsdg/core/datastructures/byte_flow.py index 9b1ebb04..86040dec 100644 --- a/numba_rvsdg/core/datastructures/byte_flow.py +++ b/numba_rvsdg/core/datastructures/byte_flow.py @@ -5,7 +5,8 @@ from numba_rvsdg.core.datastructures.scfg import SCFG from numba_rvsdg.core.datastructures.basic_block import RegionBlock from numba_rvsdg.core.datastructures.flow_info import FlowInfo -from numba_rvsdg.core.utils import _logger, _LogWrap + +# from numba_rvsdg.core.utils import _logger, _LogWrap from numba_rvsdg.core.transformations import ( restructure_loop, @@ -54,7 +55,7 @@ def from_bytecode(code) -> "ByteFlow": The resulting ByteFlow object. """ bc = dis.Bytecode(code) - _logger.debug("Bytecode\n%s", _LogWrap(lambda: bc.dis())) + # _logger.debug("Bytecode\n%s", _LogWrap(lambda: bc.dis())) flowinfo = FlowInfo.from_bytecode(bc) scfg = flowinfo.build_basicblocks() diff --git a/numba_rvsdg/core/transformations.py b/numba_rvsdg/core/transformations.py index 3cd33ca4..7c669638 100644 --- a/numba_rvsdg/core/transformations.py +++ b/numba_rvsdg/core/transformations.py @@ -11,7 +11,7 @@ ) from numba_rvsdg.core.datastructures import block_names -from numba_rvsdg.core.utils import _logger +# from numba_rvsdg.core.utils import _logger def loop_restructure_helper(scfg: SCFG, loop: Set[str]): @@ -250,9 +250,11 @@ def restructure_loop(parent_region: RegionBlock): or next(iter(nodes)) in scfg[next(iter(nodes))].jump_targets ] - _logger.debug( - "restructure_loop found %d loops in %s", len(loops), scfg.graph.keys() - ) + # _logger.debug( + # "restructure_loop found %d loops in %s", + # len(loops), + # scfg.graph.keys() + # ) # rotate and extract loop for loop in loops: loop_restructure_helper(scfg, loop)