Skip to content

Conversation

@jakobbotsch
Copy link
Member

We do not need a signed cast if we know the sign bit is already zero.

We do not need a signed cast if we know the sign bit is already zero.
@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jun 17, 2022
@ghost ghost assigned jakobbotsch Jun 17, 2022
@ghost
Copy link

ghost commented Jun 17, 2022

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

Issue Details

We do not need a signed cast if we know the sign bit is already zero.

Author: jakobbotsch
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@jakobbotsch jakobbotsch changed the title Avoid some unnecessary unsigned -> signed casts Avoid some unnecessary signed casts Jun 17, 2022
@jakobbotsch
Copy link
Member Author

jakobbotsch commented Jun 17, 2022

This fixes an assertion in the tailcall validation seen in the Fuzzlyn run in #70222.

@jakobbotsch
Copy link
Member Author

Minor diffs. Mainly this is just fixing another case where the inliner was inserting unnecessary IR after a tailcall.

cc @dotnet/jit-contrib PTAL @EgorBo

@jakobbotsch jakobbotsch requested a review from EgorBo June 17, 2022 14:38
@jakobbotsch
Copy link
Member Author

ping @EgorBo

1 similar comment
@jakobbotsch
Copy link
Member Author

ping @EgorBo

@jakobbotsch jakobbotsch merged commit a052819 into dotnet:main Jun 27, 2022
@jakobbotsch jakobbotsch deleted the expand-fgCastNeeded branch June 27, 2022 11:07
@ghost ghost locked as resolved and limited conversation to collaborators Jul 27, 2022
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