Skip to content

[release/8.0-staging] disable optimizations for PopCount - #99832

Merged
jeffschwMSFT merged 2 commits into
release/8.0-stagingfrom
backport/pr-99796-to-release/8.0-staging
Mar 15, 2024
Merged

[release/8.0-staging] disable optimizations for PopCount#99832
jeffschwMSFT merged 2 commits into
release/8.0-stagingfrom
backport/pr-99796-to-release/8.0-staging

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Mar 15, 2024

Copy link
Copy Markdown
Contributor

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]

avoid using an optimization which might fail on non-SSE4 cpus.
@ghostghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Mar 15, 2024
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@jeffschwMSFTjeffschwMSFT added the Servicing-approved Approved for servicing release label Mar 15, 2024
@jeffschwMSFTjeffschwMSFT added this to the 8.0.4 milestone Mar 15, 2024

@jeffschwMSFTjeffschwMSFT left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

@jeffschwMSFT
jeffschwMSFT merged commit 50c3c86 into release/8.0-stagingMar 15, 2024
@jkotas
jkotas deleted the backport/pr-99796-to-release/8.0-staging branch March 15, 2024 23:38
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-actionsgithub-actionsBot locked and limited conversation to collaborators May 2, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@jeffschwMSFT@mangod9