mirror of
https://github.com/python/cpython.git
synced 2025-09-24 17:33:29 +00:00
gh-106581: Honor 'always_exits' in write_components() (#109338)
I must have overlooked this when refactoring the code generator. The Tier 1 interpreter contained a few silly things like ``` goto resume_frame; STACK_SHRINK(1); ``` (and other variations, some where the unconditional `goto` was hidden in a macro).
This commit is contained in:
parent
d12b3e3152
commit
b86ce91bfe
2 changed files with 1 additions and 15 deletions
|
@ -457,7 +457,7 @@ def write_components(
|
|||
with out.block(""):
|
||||
mgr.instr.write_body(out, -4, mgr.active_caches, tier)
|
||||
|
||||
if mgr is managers[-1] and not next_instr_is_set:
|
||||
if mgr is managers[-1] and not next_instr_is_set and not mgr.instr.always_exits:
|
||||
# Adjust the stack to its final depth, *then* write the
|
||||
# pokes for all preceding uops.
|
||||
# Note that for array output effects we may still write
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue