-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Fixup some Vector<T> function lookups to use the right name/type #119068
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
Conversation
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.
Pull Request Overview
This PR fixes Vector function lookups to use the correct names and types in the JIT compiler. The changes address issues where comparison operations and the SquareRoot method were not being properly recognized by the intrinsic lookup system, which could lead to missed optimizations.
Key changes:
- Added mapping from "SquareRoot" to "Sqrt" for method name lookup
- Added
HW_Flag_BaseTypeFromFirstArgflag to comparison intrinsics (Equals, GreaterThan, etc.) to ensure proper type resolution - Added regression test to verify Vector.LessThan functionality
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/coreclr/jit/importercalls.cpp |
Added method name mapping for SquareRoot to Sqrt |
src/coreclr/jit/hwintrinsiclistxarch.h |
Added BaseTypeFromFirstArg flag to comparison intrinsics for x86/x64 |
src/coreclr/jit/hwintrinsiclistarm64.h |
Added BaseTypeFromFirstArg flag to comparison intrinsics for ARM64 |
src/tests/JIT/Regression/JitBlue/Runtime_119008/Runtime_119008.csproj |
Test project configuration for regression test |
src/tests/JIT/Regression/JitBlue/Runtime_119008/Runtime_119008.cs |
Regression test verifying Vector.LessThan behavior |
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
src/tests/JIT/Regression/JitBlue/Runtime_119008/Runtime_119008.cs
Outdated
Show resolved
Hide resolved
|
/backport to release/10.0-rc1 |
|
Started backporting to release/10.0-rc1: https://github.com/dotnet/runtime/actions/runs/17213927490 |
|
/backport to release/10.0 |
|
Started backporting to release/10.0: https://github.com/dotnet/runtime/actions/runs/17222455059 |
This resolves #119066 and resolves #118848
This will need backport to .NET 10