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

[release/9.0] JIT: Fix CndSel(AllTrue, op2, op3) -> op2 "next" node return #106971

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 26, 2024

Backport of #106954 to release/9.0

/cc @jakobbotsch

Customer Impact

  • Customer reported
  • Found internally

Use of System.Runtime.Intrinsics.Arm.Sve.ConditionalSelect with certain patterns of arguments will cause the JIT to produce invalid internal IR and lead to unpredictable results (JIT crashes or silent bad codegen).

Regression

  • Yes
  • No

Testing

A test case demonstrating the issue was found by Fuzzlyn, and the same test case was manually used to validate the fix.

Risk

Low.

When lowering makes this transformation it should proceed lowering from
the original next node of the `CndSel`, not from `op2`. If we proceed
lowering from `op2` we will relower some nodes.

Fix #106876
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Aug 26, 2024
Copy link
Contributor

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

Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

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

approved. please get a code review. we can merge when ready

@jeffschwMSFT jeffschwMSFT added the Servicing-approved Approved for servicing release label Aug 26, 2024
@jakobbotsch
Copy link
Member

Not sure why build analysis is red. All the failures it lists are known issues.

@jeffschwMSFT jeffschwMSFT merged commit 8626a1b into release/9.0 Aug 27, 2024
10 checks passed
@ericstj ericstj deleted the backport/pr-106954-to-release/9.0 branch August 29, 2024 02:44
@github-actions github-actions bot locked and limited conversation to collaborators Sep 28, 2024
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 Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants