KEMBAR78
Have morph normalize patterns to GT_NEG and GT_NOT by tannergooding · Pull Request #104214 · dotnet/runtime · GitHub
Skip to content

Conversation

@tannergooding
Copy link
Member

This ensures we get a consistent view of NEG and NOT nodes in HIR, which allows other optimizations to more reliably kick in.

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jun 30, 2024
@dotnet-policy-service
Copy link
Contributor

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

@tannergooding
Copy link
Member Author

CC. @dotnet/jit-contrib this should be ready for review.

This ensures we get a consistent view of GT_NEG and GT_NOT operations for both scalar and SIMD nodes. It minorly improves codegen and gets us better/more consistent output in several scenarios.

Copy link
Contributor

@kunalspathak kunalspathak left a comment

Choose a reason for hiding this comment

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

seems more of the code wins are coming from one method in particular:

image

@tannergooding tannergooding merged commit 147dc37 into dotnet:main Jul 3, 2024
@tannergooding tannergooding deleted the morph-simd-normalize branch July 3, 2024 00:51
@github-actions github-actions bot locked and limited conversation to collaborators Aug 2, 2024
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