Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix compiling HWIntrinsic fallbacks - #122463

#122463
Merged
jkoritzinsky merged 2 commits into
dotnet:maindotnet/runtime:mainfrom
jkoritzinsky:noskip-intrinsic-fallbackjkoritzinsky/runtime:noskip-intrinsic-fallbackCopy head branch name to clipboard
Dec 12, 2025
Merged

Fix compiling HWIntrinsic fallbacks#122463
jkoritzinsky merged 2 commits into
dotnet:maindotnet/runtime:mainfrom
jkoritzinsky:noskip-intrinsic-fallbackjkoritzinsky/runtime:noskip-intrinsic-fallbackCopy head branch name to clipboard

Conversation

@jkoritzinsky

Copy link
Copy Markdown
Member

When I changed how we do HWIntrinsic support for platforms that don't have JIT, I missed that crossgen2 explicitly skips pre-jitting the fallback methods. Adjust crossgen2 to not skip them when the target can't JIT.

When I changed how we do HWIntrinsic support for platforms that don't have JIT, I missed that crossgen2 explicitly skips pre-jitting the fallback methods. Adjust crossgen2 to not skip them when the target can't JIT.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 a bug in crossgen2 where hardware intrinsic fallback methods were incorrectly being skipped during AOT compilation for platforms that don't support runtime JIT compilation (iOS, tvOS, MacCatalyst, WebAssembly). The fix ensures that fallback implementations are compiled when the target platform cannot generate code at runtime, making them available to the interpreter.

Key changes:

  • Modified the ShouldSkipCompilation method to check if the target allows runtime code generation before skipping hardware intrinsic methods
  • Hardware intrinsic methods are now only skipped if they are hardware intrinsics and the target platform supports runtime JIT

@jkoritzinsky

Copy link
Copy Markdown
Member Author

/ba-g networking problems in unrelated legs

@jkoritzinsky
jkoritzinsky merged commit b63089a into dotnet:main Dec 12, 2025
91 of 98 checks passed
@jkoritzinsky
jkoritzinsky deleted the noskip-intrinsic-fallback branch December 12, 2025 03:35
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 11, 2026
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.