Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Disambiguate Span indexer intrinsic - #6587

Merged
jkotas merged 1 commit into
dotnet:masterfrom
jkotas:span-indexer
Nov 16, 2018
Merged

jkotas merged 1 commit into
dotnet:masterfrom
jkotas:span-indexer

Conversation

@jkotas

@jkotas jkotas commented Nov 16, 2018

Copy link
Copy Markdown
Member

case CorInfoIntrinsics.CORINFO_INTRINSIC_ReadOnlySpan_GetItem:
{
// RyuJIT handles integer overload only
var returnTypeCategory = method.Signature.ReturnType.Category;

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.

This should not be return type...

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.

Fixed & verified that the bounds check elimination still works for Span.

@jkotas
jkotas merged commit b01cf16 into dotnet:master Nov 16, 2018
@jkotas
jkotas deleted the span-indexer branch November 29, 2018 16:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants