GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — JIT: add _RROT_3 uop to reduce stack moves · Issue #149204 · python/cpython

JIT: add _RROT_3 uop to reduce stack moves #149204

New issue
Copy link
New issue
Copy link
Closed
Closed
JIT: add _RROT_3 uop to reduce stack moves#149204
Copy link
Labels
type-featureA feature request or enhancementA feature request or enhancement

Description

@NekoAsakura
NekoAsakura
opened on Apr 30, 2026
Issue body actions

Feature or enhancement

Proposal:

According to @markshannon's note #148816 (comment)

Note:
It might be worth adding ROT_3 and a RROT_3 uops to use in the optimizer and the peepholer.
A SWAP_2; SWAP_3 takes 6 moves, but ROT_3 only takes 4.

Two narrowings:

  • No _ROT_3 as _SWAP 2; _SWAP 3 adjacent doesn't exist.
  • No separate peephole pass as it would never fire.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

  • gh-149204: add _RROT_3 uop to reduce stack moves #149205

Activity

  1. NekoAsakura
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Apr 30, 2026
  2. markshannon
    added a commit that references this issue on May 1, 2026

    gh-149204: add `_RROT_3` uop to reduce stack moves (GH-149205)

    0102c1d
  3. NekoAsakura
    closed this as completedon May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.