Skip to content

Missing loop vectorization due to optimization in InstrCombine #139050

Open
@thevar1able

Description

@thevar1able

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions