Skip to content

Put the Crossgen2 assertion check in sync with actual intrinsic count - #44624

Merged
jkotas merged 2 commits into
dotnet:masterfrom
trylek:Crossgen2IntrinsicCount
Nov 13, 2020
Merged

Put the Crossgen2 assertion check in sync with actual intrinsic count#44624
jkotas merged 2 commits into
dotnet:masterfrom
trylek:Crossgen2IntrinsicCount

Conversation

@trylek

@trylek trylek commented Nov 13, 2020

Copy link
Copy Markdown
Member

Recent removal of two intrinsics from the CorInfoIntrinsics enumeration
started tripping the assertion failure verifying the expected number
of intrinsics. I'm just updating the expected count.

Thanks

Tomas

/cc @dotnet/crossgen-contrib

Recent removal of two intrinsics from the CorInfoIntrinsics enumeration
started tripping the assertion failure verifying the expected number
of intrinsics. I'm just updating the expected count.

Thanks

Tomas

@janvorli janvorli 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.

LGTM, thank you!

trylek added a commit to trylek/runtime that referenced this pull request Nov 13, 2020
@trylek

trylek commented Nov 13, 2020

Copy link
Copy Markdown
Member Author

Currently lab testing in combination with the CG2 SPC change: #44625


// If this assert fails, make sure to add the new intrinsics to the table above and update the expected count below.
Debug.Assert((int)CorInfoIntrinsics.CORINFO_INTRINSIC_Count == 34, "Please update intrinsic hash table");
Debug.Assert((int)CorInfoIntrinsics.CORINFO_INTRINSIC_Count == 32, "Please update intrinsic hash table");

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.

I think it would better to just delete this assert. It made sense when this was a separate project in CoreRT. It is not the case anymore.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good point, removed in 2nd commit.

@jkotas
jkotas merged commit 6c1ae0d into dotnet:master Nov 13, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 13, 2020
@trylek
trylek deleted the Crossgen2IntrinsicCount branch January 10, 2022 19:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants