Skip to content

Conversation

@jakobbotsch
Copy link
Member

@jakobbotsch jakobbotsch commented Apr 18, 2022

Fix #58874
Fix #64802
Fix #68157

We should backport this given the two customer reports.

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Apr 18, 2022
@ghost ghost assigned jakobbotsch Apr 18, 2022
@ghost
Copy link

ghost commented Apr 18, 2022

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

Issue Details

Fix #58874
Fix #64802
Fix #68157

Author: jakobbotsch
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

GenTree* retVal = ret->gtGetOp1();
GenTree* retVal = ret->gtGetOp1();
var_types nativeReturnType = comp->info.compRetNativeType;
// Note: small types are returned as INT.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is that comment still correct with your changes?

Copy link
Member

Choose a reason for hiding this comment

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

should be still relevant, the following genActualType should upscale all small-types to int

Copy link
Member Author

@jakobbotsch jakobbotsch Apr 18, 2022

Choose a reason for hiding this comment

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

Right, there are two nodes here, the return and the operand of the return. The return is still wide but the bug was that we were retyping the operand to a wider type, which is wrong.

@jakobbotsch
Copy link
Member Author

Failure is dotnet/arcade#9088

@jakobbotsch jakobbotsch merged commit 47f9ecd into dotnet:main Apr 20, 2022
@jakobbotsch jakobbotsch deleted the fix-58874 branch April 20, 2022 16:07
@jakobbotsch
Copy link
Member Author

/backport to release/6.0

@github-actions
Copy link
Contributor

Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/2206848351

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

3 participants