From 5b8ba565d95bdba06d1a60e28265cab1f6b30b6f Mon Sep 17 00:00:00 2001 From: kc611 Date: Tue, 8 Aug 2023 15:58:50 +0530 Subject: [PATCH] Removed additional references to logger --- numba_rvsdg/core/datastructures/byte_flow.py | 5 +++-- numba_rvsdg/core/transformations.py | 10 ++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) 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)