FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[release/9.0-staging] Ensure Vector.Create is properly recognized as intrinsic by github-actions[bot] · Pull Request #109322 · dotnet/runtime · GitHub

Repository navigation

[release/9.0-staging] Ensure Vector.Create is properly recognized as intrinsic - #109322

Merged
tannergooding merged 2 commits into
release/9.0-stagingfrom
backport/pr-108945-to-release/9.0-staging
Dec 4, 2024
Merged

tannergooding merged 2 commits into
release/9.0-stagingfrom
backport/pr-108945-to-release/9.0-staging

Conversation

github-actions Bot commented Oct 29, 2024 •
edited by tannergooding
Loading

Copy link
Copy Markdown
Contributor

Backport of #108945 to release/9.0-staging

/cc @tannergooding

Customer Impact

  • Customer reported
  • Found internally

#108929

Customers using System.Numerics.Vector<T> may see unexpected perf slowdowns on .NET 9 due to the new Vector(T scalar) APIs no longer being recognized as [Intrinsic] and therefore not being accelerated by the JIT.

Regression

  • Yes
  • No

Vector<T> is one of the original hardware accelerated types introduced in 2014 for .NET Framework. There have been multiple iterations over the past several releases modernizing the JIT implementation to bring it inline with the newer types exposed by the System.Runtime.Intrinsics namespace.

The regression was introduced in .NET 9 as part of one of the larger refactorings done for the System.Numerics.Vector<T> types when the Vector.Create<T>(T scalar) APIs were added for parity and the existing constructors were meant to defer to these APIs.

Testing

JIT disassembly was checked to ensure it was generated the expected output.

Risk

Low. This is a lowlevel performance oriented API. The regression is one of performance and not of correctness.

The fix is simply ensuring the existing logic is correctly hooked up to the new APIs as was intended.

ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Oct 29, 2024

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Member

CC. @dotnet/jit-contrib, @BruceForstall for review

@JulieLeeMSFT this should be considered for backport since its a perf regression in one of the intrinsic APIs, which are expected to be accelerated, and a user reported the initial regression

Copy link
Copy Markdown
Member

CC. @JulieLeeMSFT, I think this is just pending management approval for backport now.

jeffschwMSFT 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm. we will take for consideration in 9.0.x

JulieLeeMSFT added the Servicing-consider Issue for next servicing release review label Dec 2, 2024
tannergooding added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Dec 4, 2024

Copy link
Copy Markdown
Member

Approved by tactics over e-mail

tannergooding merged commit 329fdab into release/9.0-staging Dec 4, 2024
tannergooding deleted the backport/pr-108945-to-release/9.0-staging branch December 4, 2024 17:24
github-actions Bot locked and limited conversation to collaborators Jan 4, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

4 participants


Back | FazBrowse Home | New Git URL