Skip to content

Commit 09f7314

Browse files
committed
Revert changes because counter optimizer has been removed
1 parent f2cb39d commit 09f7314

File tree

6 files changed

+59
-87
lines changed

6 files changed

+59
-87
lines changed

Include/internal/pycore_uop_ids.h

Lines changed: 58 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_metadata.h

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/bytecodes.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4989,10 +4989,6 @@ dummy_func(
49894989
value = PyStackRef_FromPyObjectNew(ptr);
49904990
}
49914991

4992-
tier2 pure op(_LOAD_CONST_INLINE_STEAL, (ptr/4 -- value)) {
4993-
value = PyStackRef_FromPyObjectSteal(ptr);
4994-
}
4995-
49964992
tier2 pure op(_LOAD_CONST_INLINE_BORROW, (ptr/4 -- value)) {
49974993
value = PyStackRef_FromPyObjectImmortal(ptr);
49984994
}

Python/executor_cases.c.h

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/optimizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ counter_optimize(
13791379
_Py_CODEUNIT *target = instr + 1 + _PyOpcode_Caches[JUMP_BACKWARD] - oparg;
13801380
_PyUOpInstruction buffer[4] = {
13811381
{ .opcode = _START_EXECUTOR, .jump_target = 3, .format=UOP_FORMAT_JUMP },
1382-
{ .opcode = _LOAD_CONST_INLINE_STEAL, .operand0 = (uintptr_t)self },
1382+
{ .opcode = _LOAD_CONST_INLINE, .operand0 = (uintptr_t)self },
13831383
{ .opcode = _INTERNAL_INCREMENT_OPT_COUNTER },
13841384
{ .opcode = _EXIT_TRACE, .target = (uint32_t)(target - _PyCode_CODE(code)), .format=UOP_FORMAT_TARGET }
13851385
};

Python/optimizer_cases.c.h

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)