Skip to content

[mypyc] Have for ... in range() correctly generate raw comparisons #8857

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 2 commits into from
May 20, 2020

Conversation

msullivan
Copy link
Collaborator

This means we generate "i < n" instead of CPyTagged_Lt or whatever.
This doesn't actually help performance on -O3 at all, since clang is
able to figure it out. It helps on -Og, though, and it saves the
compiler having to do some work.

This means we generate "i < n" instead of CPyTagged_Lt or whatever.
This doesn't actually help performance on -O3 at all, since clang is
able to figure it out. It helps on -Og, though, and it saves the
compiler having to do some work.
Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

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

A good find!

@JukkaL JukkaL merged commit b2fc30f into master May 20, 2020
@msullivan msullivan deleted the compare-tweak branch May 20, 2020 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants