-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Potential missed optimization with mutable noalias #85570
Copy link
Copy link
Open
Labels
C-optimizationCategory: An issue highlighting optimization opportunities or PRs implementing suchCategory: An issue highlighting optimization opportunities or PRs implementing suchI-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.
Metadata
Metadata
Assignees
Labels
C-optimizationCategory: An issue highlighting optimization opportunities or PRs implementing suchCategory: An issue highlighting optimization opportunities or PRs implementing suchI-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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?