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

Change fgMorphMultiOp to fgMorphHWIntrinsic #103732

Merged
merged 5 commits into from
Jun 20, 2024

Conversation

tannergooding
Copy link
Member

This is just a simple iterative cleanup. Namely it simplifies fgMorphMultiOp to just be fgMorphHWIntrinsic as that was the only user (and likely will be the only user for the foreseeable future).

It additionally moves a couple of optimizations out of fgOptimizeHWIntrinsic down into fgFoldExprHWIntrinsic as they are simple folding operations removing nodes and/or producing constants. They are not more advanced transformations which would be producing new trees.

@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 Jun 19, 2024
Copy link
Contributor

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


if (vnStore != nullptr)
{
fgValueNumberTreeConst(vecCon);
Copy link
Member

Choose a reason for hiding this comment

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

nit: fgUpdateConstTreeValueNumber since it does vnStore != nullptr under the hood

Copy link
Member Author

Choose a reason for hiding this comment

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

There's a few places doing this that can switch, I'll get them updated in a follow up PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

Opened #103771

Copy link
Member

@EgorBo EgorBo left a comment

Choose a reason for hiding this comment

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

lgtm

@tannergooding tannergooding merged commit 1bf325c into dotnet:main Jun 20, 2024
114 checks passed
@tannergooding tannergooding deleted the hwintrinsic-morph branch June 20, 2024 16:06
rzikm pushed a commit to rzikm/dotnet-runtime that referenced this pull request Jun 24, 2024
* Remove a dead optimization from fgMorphMultiOp

* Change fgMorphMultiOp to fgMorphHWIntrinsic

* Move a couple of folding operations from `fgOptimizeHWIntrinsic` to `gtFoldExprHWIntrinsic`

* Fix the query for if an intrinsic is commutative

* Don't propagate vector constants unnecessarily
@github-actions github-actions bot locked and limited conversation to collaborators Jul 21, 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