Skip to content

Properly annotate CreateGeometricSequence#129658

Merged
tannergooding merged 2 commits into
dotnet:mainfrom
hez2010:vector-lanes-flags
Jun 20, 2026
Merged

Properly annotate CreateGeometricSequence#129658
tannergooding merged 2 commits into
dotnet:mainfrom
hez2010:vector-lanes-flags

Conversation

@hez2010

@hez2010 hez2010 commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

This is a leftover from #127690.

We need to annotate CreateGeometricSequence as non-invalid node as it might be left as GenTree node to benefit from constant propagation.

@tannergooding

Copilot AI review requested due to automatic review settings June 20, 2026 16:22
@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 Jun 20, 2026
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Jun 20, 2026
@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.

@MihaZupan

Copy link
Copy Markdown
Member

@MihuBot

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates CoreCLR JIT hardware-intrinsic metadata so CreateGeometricSequence is treated as a special-import, no-codegen intrinsic (rather than an InvalidNodeId intrinsic). This allows the intrinsic to exist as a GenTreeHWIntrinsic node (when applicable) and be expanded/optimized by later phases instead of being categorically treated as “invalid node”.

Changes:

  • Update xarch intrinsic list entries for Vector128/256/512.CreateGeometricSequence to HW_Flag_SpecialImport|HW_Flag_NoCodeGen (preserving AVX-only compatibility where relevant).
  • Update arm64 intrinsic list entries for Vector64/128.CreateGeometricSequence to HW_Flag_SpecialImport|HW_Flag_NoCodeGen.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/coreclr/jit/hwintrinsiclistxarch.h Marks Vector128/256/512 CreateGeometricSequence as `SpecialImport
src/coreclr/jit/hwintrinsiclistarm64.h Marks Vector64/Vector128 CreateGeometricSequence as `SpecialImport

@hez2010

hez2010 commented Jun 20, 2026

Copy link
Copy Markdown
Contributor Author

@MihuBot

@tannergooding tannergooding merged commit b4ca93f into dotnet:main Jun 20, 2026
138 of 140 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants