mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Collect representable constants before replacing append-sequence instructions with NOPs. A valid LOAD_COMMON_CONSTANT may not have a ConstantData value, so returning false must leave the helper's instruction sequence unchanged. Cover list, set and ListToTuple tails with a direct native IR invariant. No change to normal constant-folding behavior or canonical Lib tests. Assisted-by: OpenAI Codex:model-version-unavailable Co-authored-by: youknowdot <dot@youknowone.org>