-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[release/7.0] Ensure NI_Vector128_AsVector128 (aka Vector128<T> AsVector128(this Vector<T> value)
) doesn't have a side-effect in its assert
#76547
Conversation
…ector<T> value)`) doesn't have a side-effect in its assert
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsBackport of #76460 to release/7.0 /cc @tannergooding Customer ImpactTestingRiskIMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.
|
@tannergooding please send an email to Tactics requesting approval. |
@tannergooding, please check the test failures. |
Does this PR fix Arm64 failures that @BruceForstall mentioned in #76347? Or do we need to look into those further in addition to this fix? |
It fixes some of the failures, but not all of them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved. we will take for consideration in 7 ga.
Approved, signed off, CI green. Ready |
Backport of #76460 to release/7.0
/cc @tannergooding
Customer Impact
Users get silent "bad" codegen and incorrect disassembly displayed in the new
DOTNET_JitDisasm=...
feature.The impact of this silent bad codegen is believed to be minimal as while technically incorrect, the way a user consumes such values should normally not cause issue since they are only consuming the lower 16-bits. However, there may be unseen/unknown issues related to CSE or VN where this does lead to real failures but with no known repro at this time.
Testing
Additional testing validating the codegen were added.
Risk
Low. This path is already well tested from Debug/Checked builds and was the existing behavior in .NET 5 and prior. The relevant code was accidentally merged into an assert resulting in it being "gone" in Release builds sometime before .NET 6.