Skip to content

Conversation

@EgorBo
Copy link
Member

@EgorBo EgorBo commented Nov 3, 2023

Fixes #94332

Thanks @MichalStrehovsky for finding the root cause, indeed, a Morph optimization folded "CNS1 + CNS2" where it wasn't legal. gtFoldExprConst cares about such cases so I am just forwarding the folding to that.

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Nov 3, 2023
@ghost ghost assigned EgorBo Nov 3, 2023
@ghost
Copy link

ghost commented Nov 3, 2023

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

Issue Details

Fixes #94332

Thanks @MichalStrehovsky for finding the root cause, indeed, a Morph optimization folded "CNS1 + CNS2" where it wasn't legal

Author: EgorBo
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@EgorBo
Copy link
Member Author

EgorBo commented Nov 3, 2023

/azp list

@azure-pipelines

This comment was marked as resolved.

@EgorBo
Copy link
Member Author

EgorBo commented Nov 3, 2023

/azp run runtime-coreclr outerloop, runtime-coreclr jitstress, runtime-nativeaot-outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@EgorBo
Copy link
Member Author

EgorBo commented Nov 3, 2023

@dotnet/jit-contrib PTAL, no diffs but fixes the AOT issue. gtFoldExprConst won't fold "CNS1 + CNS2" when either (or both) are handles.

I assume this will need to be backported to .NET 8.0

@EgorBo EgorBo merged commit 9fe2228 into dotnet:main Nov 6, 2023
@EgorBo
Copy link
Member Author

EgorBo commented Nov 6, 2023

/backport to release/8.0

@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2023

Started backporting to release/8.0: https://github.com/dotnet/runtime/actions/runs/6773318364

@ghost ghost locked as resolved and limited conversation to collaborators Dec 6, 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.

JIT incorrectly adds handles to integer constants

2 participants