8000 gh-104909: Split BINARY_OP into micro-ops by gvanrossum · Pull Request #104910 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-104909: Split BINARY_OP into micro-ops #104910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 31, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use match/case as intended
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
  • Loading branch information
gvanrossum and brandtbucher authored May 27, 2023
commit fd462489156fbf2941c68cd74ec4e15d6ad3ef71
5 changes: 2 additions & 3 deletions Tools/cases_generator/generate_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,9 +1156,8 @@ def wrap_super_or_macro(self, up: SuperOrMacroInstruction):
self.out.emit("")
with self.out.block(f"TARGET({up.name})"):
match up:
case MacroInstruction() as mac:
if mac.predicted:
self.out.emit(f"PREDICTED({mac.name});")
case MacroInstruction(predicted=True, name=name):
self.out.emit(f"PREDICTED({name});")
for i, var in reversed(list(enumerate(up.stack))):
src = None
if i < up.initial_sp:
Expand Down
0