Skip to content

Missing loop vectorization due to optimization in InstrCombine #139050

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

Open
thevar1able opened this issue May 8, 2025 · 0 comments
Open

Missing loop vectorization due to optimization in InstrCombine #139050

thevar1able opened this issue May 8, 2025 · 0 comments

Comments

@thevar1able
Copy link
Contributor

thevar1able commented May 8, 2025

Loop vectorization that worked with clang-19 stopped with clang-20.

Minimal repro:
https://godbolt.org/z/Yd4KjG9Yo
https://godbolt.org/z/cP5jeeo5Y

I bisected the regression to this PR. Looks like wrapping inside select(...) confuses LoopVectorizer.

Backreference: ClickHouse/ClickHouse#77352 (comment)

@thevar1able thevar1able changed the title Missing masked loop vectorization due to optimization in InstrCombine Missing loop vectorization due to optimization in InstrCombine May 8, 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