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

This commit is contained in:
Neko Asakura 2026-05-01 19:35:31 +08:00 committed by GitHub
parent f4f82f0ab6
commit 0102c1d9b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 1198 additions and 1057 deletions

View file

@ -936,6 +936,13 @@ dummy_func(void) {
assert(oparg >= 2);
}
op(_RROT_3, (bottom, middle, top -- bottom, middle, top)) {
JitOptRef temp = top;
top = middle;
middle = bottom;
bottom = temp;
}
op(_LOAD_ATTR_INSTANCE_VALUE, (offset/1, owner -- attr, o)) {
attr = sym_new_not_null(ctx);
(void)offset;