Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GH-115802: JIT "small" code for macOS and Linux#115826

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
brandtbucher merged 7 commits intopython:mainfrombrandtbucher:justin-relax-a
Feb 26, 2024

Conversation

brandtbucher
Copy link
Member

@brandtbucherbrandtbucher commentedFeb 22, 2024
edited
Loading

Windows will come next, since that uses a different mechanism.

Somewhere in the neighborhood of~0-3% faster, as expected.

stonebig reacted with heart emoji
@brandtbucherbrandtbucher added performancePerformance or resource usage interpreter-core(Objects, Python, Grammar, and Parser dirs) labelsFeb 22, 2024
@brandtbucherbrandtbucher self-assigned thisFeb 22, 2024
@bedevere-appbedevere-appbot mentioned this pull requestFeb 22, 2024
13 tasks
@brandtbucherbrandtbucher marked this pull request as ready for reviewFebruary 22, 2024 19:34
@brandtbucherbrandtbucher merged commit7259480 intopython:mainFeb 26, 2024
Copy link
Member

@markshannonmarkshannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I minor issue with an assert, otherwise looks good.

{
unsigned char rd = get_bits(loc32[0], 0, 5);
assert(IS_AARCH64_LDR_OR_STR(loc32[1]));
unsigned char rt = get_bits(loc32[1], 0, 5);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

rt andrn are only used in the assert, so I'm getting an unused variable warning.

assert(IS_AARCH64_LDR_OR_STR(loc32[1]));
unsigned char rt = get_bits(loc32[1], 0, 5);
unsigned char rn = get_bits(loc32[1], 5, 5);
assert(rd == rn && rn == rt);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
assert(rd==rn&&rn==rt);
assert(rd==get_bits(loc32[1],5,5)&&rd==get_bits(loc32[1],0,5));

@@ -121,21 +122,14 @@ async def _compile(
"-fno-builtin",
# SET_FUNCTION_ATTRIBUTE on 32-bit Windows debug builds:
"-fno-jump-tables",
# Position-independent code adds indirection to every load and jump:
"-fno-pic",
"-fno-plt",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Could you make sure each option has a comment saying what it does.

@bedevere-app
Copy link

When you're done making the requested changes, leave the comment:I have made the requested changes; please review again.

@brandtbucher
Copy link
MemberAuthor

Sorry, looks like I merged just before your review. I'll address these in the follow-up Windows PR.

woodruffw pushed a commit to woodruffw-forks/cpython that referenced this pull requestMar 4, 2024
adorilson pushed a commit to adorilson/cpython that referenced this pull requestMar 25, 2024
diegorusso pushed a commit to diegorusso/cpython that referenced this pull requestApr 17, 2024
LukasWoodtli pushed a commit to LukasWoodtli/cpython that referenced this pull requestJan 22, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@markshannonmarkshannonmarkshannon requested changes

Assignees

@brandtbucherbrandtbucher

Labels
awaiting changesinterpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usageskip newstopic-JIT
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@brandtbucher@markshannon

[8]ページ先頭

©2009-2025 Movatter.jp