8000 move push_cold_blocks_to_end up · python/cpython@9736e75 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9736e75

Browse files
committed
move push_cold_blocks_to_end up
1 parent bab900a commit 9736e75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Python/compile.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8649,6 +8649,9 @@ assemble(struct compiler *c, int addNone)
86498649
if (duplicate_exits_without_lineno(g) < 0) {
86508650
goto error;
86518651
}
8652+
if (push_cold_blocks_to_end(g, code_flags) < 0) {
8653+
goto error;
8654+
}
86528655
propagate_line_numbers(g->g_entryblock);
86538656
guarantee_lineno_for_exits(g->g_entryblock, c->u->u_firstlineno);
86548657

@@ -8660,9 +8663,6 @@ assemble(struct compiler *c, int addNone)
86608663

86618664
convert_exception_handlers_to_nops(g->g_entryblock);
86628665

8663-
if (push_cold_blocks_to_end(g, code_flags) < 0) {
8664-
goto error;
8665-
}
86668666
for (basicblock *b = g->g_entryblock; b != NULL; b = b->b_next) {
86678667
remove_redundant_nops(b);
86688668
}

0 commit comments

Comments
 (0)
0