Skip to content

<xutility>: Extend vectorization condition for _Synth_three_way - #5078

Merged
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:mainfrom
frederick-vs-ja:vec-cont-cmp-3way
Nov 14, 2024
Merged

<xutility>: Extend vectorization condition for _Synth_three_way#5078
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:mainfrom
frederick-vs-ja:vec-cont-cmp-3way

Conversation

@frederick-vs-ja

Copy link
Copy Markdown
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.

@StephanTLavavej

Copy link
Copy Markdown
Member

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

@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 6e56c12 into microsoft:main Nov 14, 2024
@StephanTLavavej

Copy link
Copy Markdown
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Must go faster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants