-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Commutative morph optimizations #64122
Merged
BruceForstall
merged 4 commits into
dotnet:main
from
SingleAccretion:Commutative-Morph-Opt
Jan 28, 2022
Merged
Commutative morph optimizations #64122
BruceForstall
merged 4 commits into
dotnet:main
from
SingleAccretion:Commutative-Morph-Opt
Jan 28, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dotnet-issue-labeler
bot
added
the
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
label
Jan 21, 2022
ghost
added
the
community-contribution
Indicates that the PR has been added by a community member
label
Jan 21, 2022
Tagging subscribers to this area: @JulieLeeMSFT Issue DetailsAs promised in #63251, there was some low-handing fruit in the code. This change picks it up:
We are expecting some pretty nice diffs form all the above combined.
|
SingleAccretion
changed the title
Commutative morph opt
Commutative morph optimizations
Jan 21, 2022
@dotnet/jit-contrib |
"fgMorphCommutative" exposes information to the later transforms that make them more precise. For example, "MUL(MUL(X, CONST1), CONST2)" is now morphed properly into a single "mul" instead of one "mul" plus a shift and lea in case "CONST2" was a viable candidate for "mulshift". Another example is how "fgMorphCommutative" can end up with an "ADD(X, 0)" that was only being discarded in lowering.
No reason not to. Just a few diffs.
No LEAs - no point.
SingleAccretion
force-pushed
the
Commutative-Morph-Opt
branch
from
January 28, 2022 15:39
f5a8928
to
d3b168b
Compare
BruceForstall
approved these changes
Jan 28, 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
community-contribution
Indicates that the PR has been added by a community member
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As promised in #63251, there was some low-hanging fruit in the code. This change picks it:
x + 0
forCNS_LNG
too.fgGlobalMorph
guard.Diffs.
Win-x64
diffs didn't make it for unclear reasons, here's the locally obtained version:win-x64
diffs.