Skip to content

Commit 244bf39

Browse files
committed
remove _INTERNAL_INCREMENT_OPT_COUNTER
1 parent 4a79ba2 commit 244bf39

File tree

6 files changed

+92
-121
lines changed

6 files changed

+92
-121
lines changed

Include/internal/pycore_uop_ids.h

+92-93
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_metadata.h

-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/bytecodes.c

-7
Original file line numberDiff line numberDiff line change
@@ -5049,13 +5049,6 @@ dummy_func(
50495049
DECREF_INPUTS();
50505050
}
50515051

5052-
/* Internal -- for testing executors */
5053-
op(_INTERNAL_INCREMENT_OPT_COUNTER, (opt --)) {
5054-
_PyCounterOptimizerObject *exe = (_PyCounterOptimizerObject *)PyStackRef_AsPyObjectBorrow(opt);
5055-
exe->count++;
5056-
DEAD(opt);
5057-
}
5058-
50595052
tier2 op(_DYNAMIC_EXIT, (exit_p/4 --)) {
50605053
tstate->previous_executor = (PyObject *)current_executor;
50615054
_PyExitData *exit = (_PyExitData *)exit_p;

Python/executor_cases.c.h

-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/optimizer.c

-1
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,6 @@ counter_optimize(
13761376
_PyUOpInstruction buffer[4] = {
13771377
{ .opcode = _START_EXECUTOR, .jump_target = 3, .format=UOP_FORMAT_JUMP },
13781378
{ .opcode = _LOAD_CONST_INLINE, .operand0 = (uintptr_t)self },
1379-
{ .opcode = _INTERNAL_INCREMENT_OPT_COUNTER },
13801379
{ .opcode = _EXIT_TRACE, .target = (uint32_t)(target - _PyCode_CODE(code)), .format=UOP_FORMAT_TARGET }
13811380
};
13821381
_PyExecutorObject *executor = make_executor_from_uops(buffer, 4, &EMPTY_FILTER);

Python/optimizer_cases.c.h

-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)