Skip to content

Unprofitable loop vectorization #128062

@nikic

Description

@nikic

LoopVectorize generates something really bad here, with lots of element-wise loads, inserts, extracts and stores. Letting it fall through to SLP generates much better code.

LoopVectorize: https://llvm.godbolt.org/z/dPcEedY1v
SLPVectorizer: https://llvm.godbolt.org/z/33d31djno

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions