Skip to content

arm64: Additions with GetActiveElementCount() should use incp when given the same predicate #114628

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jonathandavies-arm
Copy link
Contributor

@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 Apr 14, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Apr 14, 2025
@jonathandavies-arm
Copy link
Contributor Author

@a74nh @kunalspathak @dotnet/arm64-contrib

Copy link
Contributor

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

@kunalspathak kunalspathak added the arm-sve Work related to arm64 SVE/SVE2 support label Apr 25, 2025
@kunalspathak kunalspathak self-requested a review April 25, 2025 22:03
@kunalspathak
Copy link
Member

@jonathandavies-arm - can you fix the build errors?

  D:\a\_work\1\s\src\coreclr\jit\lower.cpp(7211) : error C4701: potentially uninitialized local variable 'next' used

const GenTreeHWIntrinsic* elementCountNode = op1->AsHWIntrinsic();
GenTree* mask1 = elementCountNode->Op(1)->AsHWIntrinsic()->Op(2);
GenTree* mask2 = elementCountNode->Op(2)->AsHWIntrinsic()->Op(2);
if (mask1->GetVN(VNK_Liberal) != mask2->GetVN(VNK_Liberal))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So here we are using value numbering to contain the node, which seems wrong. This should ideally be happening in VN/CSE. Did you check why that is not happening?

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 arm-sve Work related to arm64 SVE/SVE2 support 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.

ARM64-SVE: Additions with GetActiveElementCount() should use incp
2 participants