Skip to content
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

Fix fgOptimizeAddition opt for AOT #94350

Merged
merged 2 commits into from
Nov 6, 2023
Merged

Fix fgOptimizeAddition opt for AOT #94350

merged 2 commits into from
Nov 6, 2023

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.

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

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

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
234 of 236 checks passed
@EgorBo
Copy link
Member Author

EgorBo commented Nov 6, 2023

/backport to release/8.0

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