]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115999: Introduce helpers for (un)specializing instructions (#126414)
authormpage <mpage@cs.stanford.edu>
Wed, 6 Nov 2024 20:04:04 +0000 (12:04 -0800)
committerGitHub <noreply@github.com>
Wed, 6 Nov 2024 20:04:04 +0000 (12:04 -0800)
commit9ce4fa0719d291070b6a66fe25716ef1e81448fc
treef61355fa6217e212769b52eeaa7d7c7b6ba4e8c5
parenta1c57bcfd2bcbc55ff858407e09c1d8d8cee44e6
gh-115999: Introduce helpers for (un)specializing instructions (#126414)

Introduce helpers for (un)specializing instructions

Consolidate the code to specialize/unspecialize instructions into
two helper functions and use them in `_Py_Specialize_BinaryOp`.
The resulting code is more concise and keeps all of the logic at
the point where we decide to specialize/unspecialize an instruction.
Python/specialize.c