Skip to content

Conversation

@jakobbotsch
Copy link
Member

The backend would produce illegal IR for this case (like SIMD16 <- long bitcasts). Fixes a bug I saw in #118778.

The backend would produce illegal IR for this case (like SIMD16 <- long
bitcasts).
@github-actions github-actions bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Sep 1, 2025
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@jakobbotsch jakobbotsch marked this pull request as ready for review September 1, 2025 14:20
Copilot AI review requested due to automatic review settings September 1, 2025 14:20
Copy link
Contributor

Copilot AI left a 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 a bug in the JIT's argument passing logic by preventing insertions into SIMD registers, which would cause the backend to generate illegal IR such as SIMD16 <- long bitcasts.

  • Adds validation to disallow SIMD register insertions during field list compatibility checking
  • Includes debug logging for better diagnostics when SIMD insertions are rejected

@jakobbotsch
Copy link
Member Author

cc @dotnet/jit-contrib PTAL @EgorBo

No diffs

@jakobbotsch jakobbotsch requested a review from EgorBo September 1, 2025 16:16
@jakobbotsch jakobbotsch merged commit 19a23c8 into dotnet:main Sep 2, 2025
113 checks passed
@jakobbotsch jakobbotsch deleted the simd-fieldlist branch September 2, 2025 06:46
@github-actions github-actions bot locked and limited conversation to collaborators Oct 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants