Skip to content

Potential missed optimization with mutable noalias #85570

@veber-alex

Description

@veber-alex

https://godbolt.org/z/9TY68vcjq

In the above code the methods on the struct that owns the array are not SIMD optimized but the methods on struct which has a reference are SIMD optimized.
On stable or with -Zmutable-noalias=off all methods are not SIMD optimized.

Is this a missed optimization or is there a real difference between owning the array and having a reference?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-optimizationCategory: An issue highlighting optimization opportunities or PRs implementing suchI-slowIssue: Problems and improvements with respect to performance of generated code.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions