Skip to content

Commit 585be72

Browse files
remove buggy optimization
1 parent 1a85b95 commit 585be72

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Python/optimizer_bytecodes.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,8 +985,7 @@ dummy_func(void) {
985985
ctx->frame->func = func;
986986
}
987987
// Fixed calls don't need IP guards.
988-
if ((this_instr-1)->opcode == _SAVE_RETURN_OFFSET ||
989-
(this_instr-1)->opcode == _CREATE_INIT_FRAME) {
988+
if ((this_instr-1)->opcode == _CREATE_INIT_FRAME) {
990989
assert((this_instr+1)->opcode == _GUARD_IP__PUSH_FRAME);
991990
REPLACE_OP(this_instr+1, _NOP, 0, 0);
992991
}

Python/optimizer_cases.c.h

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)