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

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

CopilotAI review requested due to automatic review settings June 20, 2026 16:22
@github-actionsgithub-actionsBot 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-servicedotnet-policy-serviceBot 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

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

FileDescription
src/coreclr/jit/hwintrinsiclistxarch.hMarks Vector128/256/512 CreateGeometricSequence as `SpecialImport
src/coreclr/jit/hwintrinsiclistarm64.hMarks Vector64/Vector128 CreateGeometricSequence as `SpecialImport

@hez2010

Copy link
Copy Markdown
ContributorAuthor

@MihuBot

@tannergooding
tannergooding merged commit b4ca93f into dotnet:mainJun 20, 2026
138 of 140 checks passed
@dotnet-milestone-botdotnet-milestone-botBot added this to the 11.0-preview6 milestone Jun 22, 2026
eiriktsarpalis pushed a commit that referenced this pull request Jul 15, 2026
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
ManickaP pushed a commit to ManickaP/runtime that referenced this pull request Jul 22, 2026
This is a leftover from dotnet#127690.
We need to annotate `CreateGeometricSequence` as non-invalid node as it
might be left as GenTree node to benefit from constant propagation.
@tannergooding
@github-actionsgithub-actionsBot locked and limited conversation to collaborators Jul 23, 2026
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 SuperPMIcommunity-contributionIndicates 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

@hez2010@MihaZupan@tannergooding