Skip to content

Commit 483ac7a

Browse files
committed
Optimize returns
1 parent 696c630 commit 483ac7a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Python/flowgraph.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2612,18 +2612,6 @@ optimize_load_fast(cfg_builder *g)
26122612
break;
26132613
}
26142614

2615-
case RETURN_VALUE: {
2616-
// We need to return a new reference so there is no point
2617-
// optimizing the instruction that produced the returned
2618-
// reference.
2619-
ref r = ref_stack_pop(&refs);
2620-
if (r.local != NOT_LOCAL) {
2621-
assert(r.instr >= 0);
2622-
has_killed_refs[r.instr] = true;
2623-
}
2624-
break;
2625-
}
2626-
26272615
case STORE_FAST: {
26282616
kill_local(has_killed_refs, block->b_iused, &refs, oparg);
26292617
ref_stack_pop(&refs);

0 commit comments

Comments
 (0)