Skip to content
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

Lower mem intrinsics to loops #436

Open
mysterymath opened this issue Jan 27, 2024 · 0 comments
Open

Lower mem intrinsics to loops #436

mysterymath opened this issue Jan 27, 2024 · 0 comments
Labels
optimization Improving the speed or size of generated code p1

Comments

@mysterymath
Copy link
Member

For simple cases, it can be faster and smaller to directly emit a loop than to emit a call to a mem function. We should identify these cases and emit an inline loop. This is a similarly important optimization to the constant multiply one, since actual user loops are normalized to these intrinsics.

@mysterymath mysterymath added optimization Improving the speed or size of generated code p1 labels Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Improving the speed or size of generated code p1
Projects
None yet
Development

No branches or pull requests

1 participant