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

Help pythran avoid copy operations #2185

Closed
jeanlaroche opened this issue Feb 22, 2024 · 0 comments
Closed

Help pythran avoid copy operations #2185

jeanlaroche opened this issue Feb 22, 2024 · 0 comments

Comments

@jeanlaroche
Copy link
Contributor

When copying from one array to another, it would be great to help pythran detect that there is no overlap between the two arrays and the copy can be done without allocating any intermediate array.
One idea is to use assert(id(A) ~= id(B)) (similar to what's currently available for flag non-modulo addressing in loops)

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

No branches or pull requests

1 participant