Skip to content

Conversation

saucecontrol
Copy link
Member

@saucecontrol saucecontrol commented Jul 11, 2025

This is a follow up to #114597. It fixes the invalid removal of the intermediate double cast in a conv.r.un; conv.r8; conv.r4 IL sequence.

The original form of the optimization was primarily intended to deal with conv.r.un; conv.r4 (direct ulong->float cast), which is now handled by the importer since #114597. However, it did also catch some actual redundant intermediate double casts.

This change removes the platform #ifdefs for the optimization since when it's valid, it's valid for all platforms.

(peeled off from #116805)

@github-actions github-actions bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jul 11, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jul 11, 2025
@saucecontrol
Copy link
Member Author

cc @dotnet/jit-contrib

Diffs show just a couple of hits on the existing tests collection.

Copy link
Member

@tannergooding tannergooding left a comment

Choose a reason for hiding this comment

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

CC. @dotnet/jit-contrib for secondary review

@tannergooding tannergooding requested a review from EgorBo July 12, 2025 03:04
@EgorBo
Copy link
Member

EgorBo commented Jul 14, 2025

/azp run Fuzzlyn

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tannergooding
Copy link
Member

Fuzzlyn issue is #117605

@tannergooding tannergooding merged commit 757dcc2 into dotnet:main Jul 14, 2025
126 of 129 checks passed
@saucecontrol saucecontrol deleted the lng2flt3 branch July 14, 2025 16:01
@github-actions github-actions bot locked and limited conversation to collaborators Aug 14, 2025
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 community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants