8000 Mark instructions and uops with DECREF_INPUTS as escaping. · faster-cpython/cpython@26a0397 · GitHub
[go: up one dir, main page]

Skip to content

Commit 26a0397

Browse files
committed
Mark instructions and uops with DECREF_INPUTS as escaping.
1 parent bb5ec6e commit 26a0397

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

Include/internal/pycore_opcode_metadata.h

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

Include/internal/pycore_uop_metadata.h

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

Tools/cases_generator/analyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ def compute_properties(op: parser.CodeDef) -> Properties:
832832
)
833833
error_with_pop = has_error_with_pop(op)
834834
error_without_pop = has_error_without_pop(op)
835-
escapes = bool(escaping_calls)
835+
escapes = bool(escaping_calls) or variable_used(op, "DECREF_INPUTS")
836836
pure = False if isinstance(op, parser.LabelDef) else "pure" in op.annotations
837837
no_save_ip = False if isinstance(op, parser.LabelDef) else "no_save_ip" in op.annotations
838838
return Properties(

0 commit comments

Comments
 (0)
0