mirror of
https://github.com/python/cpython.git
synced 2025-11-22 19:46:48 +00:00
GH-131729: Code-gen better liveness analysis (GH-131732)
* Rename 'defined' attribute to 'in_local' to more accurately reflect how it is used * Make death of variables explicit even for array variables. * Convert in_memory from boolean to stack offset * Don't apply liveness analysis to optimizer generated code * Fix RETURN_VALUE in optimizer
This commit is contained in:
parent
b9ca438daa
commit
1b8bb1ed0c
12 changed files with 344 additions and 399 deletions
|
|
@ -205,7 +205,7 @@ def generate_tier1_labels(
|
|||
for name, label in analysis.labels.items():
|
||||
emitter.emit(f"LABEL({name})\n")
|
||||
emitter.emit("{\n")
|
||||
storage = Storage(Stack(), [], [], [])
|
||||
storage = Storage(Stack(), [], [], False)
|
||||
if label.spilled:
|
||||
storage.spilled = 1
|
||||
emitter.emit("/* STACK SPILLED */\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue