Skip to content

Commit

Permalink
Make super uops more like tier 1
Browse files Browse the repository at this point in the history
Also add more updated superuops from JeffersGlass' stats

Co-Authored-By: Jeff Glass <1931111+JeffersGlass@users.noreply.github.com>
  • Loading branch information
Fidget-Spinner and JeffersGlass committed Dec 29, 2024
1 parent 66d3583 commit 26330e8
Show file tree
Hide file tree
Showing 9 changed files with 15,537 additions and 10,699 deletions.
1,027 changes: 593 additions & 434 deletions Include/internal/pycore_uop_ids.h

Large diffs are not rendered by default.

5,868 changes: 3,831 additions & 2,037 deletions Include/internal/pycore_uop_metadata.h

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -3652,7 +3652,7 @@ dummy_func(
DEOPT_IF(tstate->py_recursion_remaining <= 1);
}

pure op(_INIT_CALL_PY_EXACT_ARGS, (callable[1], self_or_null[1], args[oparg] -- new_frame: _PyInterpreterFrame*)) {
replicate(5) op(_INIT_CALL_PY_EXACT_ARGS, (callable[1], self_or_null[1], args[oparg] -- new_frame: _PyInterpreterFrame*)) {
int has_self = !PyStackRef_IsNull(self_or_null[0]);
STAT_INC(CALL, hit);
new_frame = _PyFrame_PushUnchecked(tstate, callable[0], oparg + has_self, frame);
Expand Down
Loading

0 comments on commit 26330e8

Please sign in to comment.