Skip to content

Clang fails to get rid of a simple loop, and ends up generating horrible vector code #36241

@LebedevRI

Description

@LebedevRI
Bugzilla Link 36893
Version trunk
OS Linux
CC @efriedma-quic,@fhahn,@sparker-arm,@rotateright

Extended Description

I'm not sure i've picked the right category.

https://godbolt.org/g/GfPP1m

IMHO both sources do the same thing, so the resulting assembly should be the same.
The loop should have been optimized away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions