KEMBAR78
`<xutility>`: Extend vectorization condition for `_Synth_three_way` by frederick-vs-ja · Pull Request #5078 · microsoft/STL · GitHub
Skip to content

Conversation

@frederick-vs-ja
Copy link
Contributor

When three_way_comparable_with<const _Elem1&, const _Elem2&> is satisfied, _Synth_three_way behaves same as compare_three_way. So we should also consider three-way comparison via _Synth_three_way to be vectorizable.

The change is expected to make more comparisons between contiguous containers vectorized.

I think existing test coverages are sufficient.

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner November 12, 2024 07:24
@CaseyCarter CaseyCarter added the performance Must go faster label Nov 12, 2024
@StephanTLavavej StephanTLavavej self-assigned this Nov 12, 2024
@StephanTLavavej StephanTLavavej removed their assignment Nov 12, 2024
@StephanTLavavej StephanTLavavej self-assigned this Nov 14, 2024
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit 6e56c12 into microsoft:main Nov 14, 2024
39 checks passed
@StephanTLavavej
Copy link
Member

Thanks for noticing and extending this optimization! 🦅 👁️ 🛰️

@frederick-vs-ja frederick-vs-ja deleted the vec-cont-cmp-3way branch November 14, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Must go faster

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants