Skip to content

Commit

Permalink
add a note
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Sep 30, 2024
1 parent f000e09 commit 5dc01e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vyper/venom/passes/function_inliner.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ def _handle_invoke(self, invoke_inst, invoke_idx):

bbs = list(target_function.get_basic_blocks())

# TODO: the number of times a function is called globally is also important
# TODO: the number of times a function is called globally is also
# important
# TODO: check the threshold after the function is optimized
if sum(len(bb.instructions) for bb in bbs) > self._threshold:
return False

Expand Down

0 comments on commit 5dc01e8

Please sign in to comment.