Skip to content

JIT: Fix purity of CORINFO_HELP_GETREFANY on win-x64 - #80292

Merged
jakobbotsch merged 1 commit into
dotnet:mainfrom
jakobbotsch:vn-getrefany
Jan 9, 2023
Merged

jakobbotsch merged 1 commit into
dotnet:mainfrom
jakobbotsch:vn-getrefany

Conversation

@jakobbotsch

Copy link
Copy Markdown
Member

We mark this helper as pure, but on win-x64 the struct argument becomes an implicit byref and the JIT does not support purity through the "load".

Alternative fix could be to teach fgValueNumberHelperCallFunc to handle implicit byrefs by creating a unique VN for them.

Context: #79346 (comment)

We mark this helper as pure, but on win-x64 the struct argument becomes
an implicit byref and the JIT does not support purity through the
"load".
@ghost ghost assigned jakobbotsch Jan 6, 2023
@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jan 6, 2023
@ghost

ghost commented Jan 6, 2023

Copy link
Copy Markdown

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

Issue Details

We mark this helper as pure, but on win-x64 the struct argument becomes an implicit byref and the JIT does not support purity through the "load".

Alternative fix could be to teach fgValueNumberHelperCallFunc to handle implicit byrefs by creating a unique VN for them.

Context: #79346 (comment)

Author: jakobbotsch
Assignees: jakobbotsch
Labels:

area-CodeGen-coreclr

Milestone: -

@jakobbotsch

Copy link
Copy Markdown
Member Author

cc @dotnet/jit-contrib PTAL @AndyAyersMS

@jakobbotsch
jakobbotsch merged commit b2babe4 into dotnet:main Jan 9, 2023
@jakobbotsch
jakobbotsch deleted the vn-getrefany branch January 9, 2023 09:30
@ghost ghost locked as resolved and limited conversation to collaborators Feb 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants