Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure small counts are properly handled for sizeof(T) == 8 #96463

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

tannergooding
Copy link
Member

This resolves the CI failures being seen after #94555 was merged

@ghost
Copy link

ghost commented Jan 3, 2024

Tagging subscribers to this area: @dotnet/area-system-numerics
See info in area-owners.md if you want to be subscribed.

Issue Details

This resolves the CI failures being seen after #94555 was merged

Author: tannergooding
Assignees: tannergooding
Labels:

area-System.Numerics

Milestone: -

case 1:
{
result = TAggregationOperator.Invoke(result, TTransformOperator.Invoke(xRef));
goto case 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why goto case 0 rather than break?

Copy link
Member Author

@tannergooding tannergooding Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The JIT doesn't do the best job at merging paths together, but it does fine at recognizing fallthrough patterns. Going to case 0 gives us a single fallthrough pattern with no branching that just naturally continues after the switch

Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@stephentoub stephentoub merged commit d3be0ec into dotnet:main Jan 4, 2024
111 checks passed
@tannergooding tannergooding deleted the fix-generic-small branch January 4, 2024 17:54
@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[libraries-jitstress] Failures in System.Numerics.Tensors.Tests.*Generic*
2 participants