Skip to content

[Loop Vectorizer] Loop is not vectorized despite builtin_assume #64658

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

Closed
komalon1 opened this issue Aug 13, 2023 · 1 comment
Closed

[Loop Vectorizer] Loop is not vectorized despite builtin_assume #64658

komalon1 opened this issue Aug 13, 2023 · 1 comment

Comments

@komalon1
Copy link
Contributor

See reproducer in https://godbolt.org/z/M6a7zxxdK
Given the fact that stride >= width it should be safe to vectorize the load from l_out[(i + 1) * stride + j] and the store to l_out[i*stride + j] since they won't overlap.

Replacing stride with width works in this case.

@fhahn
Copy link
Contributor

fhahn commented May 7, 2025

Loop is now vectorized: https://godbolt.org/z/7YaaxeWvz

Please re-open the issue if it still reproduces on your end, with a new reproducer

@fhahn fhahn closed this as completed May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants