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/8.0-staging] disable optimizations for PopCount #99832

Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 15, 2024

Backport of #99796 to release/8.0-staging

/cc @mangod9

Customer Impact

  • Customer reported
  • Found internally

Regression

  • Yes
  • No

This was a regression in 8.0.3 due to a compiler update which caused popcnt instruction from being emitted. This causes .NET applications to stop working on cpus without SSE4 support.

Testing

Verified locally that popcnt is not being generated, and also that inlining for these methods is disabled.

Risk

[Low]

mangod9 added 2 commits March 15, 2024 19:02
avoid using an optimization which might fail on non-SSE4 cpus.
@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 Mar 15, 2024
Copy link
Contributor

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

@mangod9 mangod9 requested a review from jeffschwMSFT March 15, 2024 19:03
@jeffschwMSFT jeffschwMSFT added the Servicing-approved Approved for servicing release label Mar 15, 2024
@jeffschwMSFT jeffschwMSFT added this to the 8.0.4 milestone Mar 15, 2024
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.

pre-approval to unblock regression in 8.0.3

@jeffschwMSFT
Copy link
Member

relevant VS Developer Community feedback item : https://developercommunity.visualstudio.com/t/Visual-Studio-1793-crashes-during-star/10614986

@jeffschwMSFT jeffschwMSFT merged commit 50c3c86 into release/8.0-staging Mar 15, 2024
110 of 112 checks passed
@jkotas jkotas deleted the backport/pr-99796-to-release/8.0-staging branch March 15, 2024 23:38
carlossanlop pushed a commit to carlossanlop/runtime that referenced this pull request Mar 18, 2024
* disable optimizations for PopCount

avoid using an optimization which might fail on non-SSE4 cpus.

* remove whitespace for jit-format

---------

Co-authored-by: Manish Godse <61718172+mangod9@users.noreply.github.com>
carlossanlop added a commit that referenced this pull request Mar 18, 2024
* disable optimizations for PopCount

avoid using an optimization which might fail on non-SSE4 cpus.

* remove whitespace for jit-format

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Manish Godse <61718172+mangod9@users.noreply.github.com>
@github-actions github-actions bot locked and limited conversation to collaborators May 2, 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.

2 participants