Skip to content

Commit

Permalink
Removed additional references to logger
Browse files Browse the repository at this point in the history
  • Loading branch information
kc611 committed Aug 8, 2023
1 parent b257faf commit 5b8ba56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions numba_rvsdg/core/datastructures/byte_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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()
Expand Down
10 changes: 6 additions & 4 deletions numba_rvsdg/core/transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]):
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5b8ba56

Please sign in to comment.