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

JIT: Canonicalize entry BB early #102280

Merged
merged 1 commit into from
May 16, 2024

Conversation

jakobbotsch
Copy link
Member

Canonicalize entry BB before the early transformations instead of doing it as part of the transformations. This allows us to move the morph DFS even earlier, which will be useful for other phases as well.

This is a prerequisite for the fix to #87072 and #102273; I expect to use an RPO traversal during local morph to do early propagation of LCL_ADDR nodes. This change makes the RPO available during local morph.

Canonicalize entry BB before the early transformations instead of doing
it as part of the transformations. This allows us to move the morph DFS
even earlier, which will be useful for other phases as well.
@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 May 15, 2024
Copy link
Contributor

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

@jakobbotsch
Copy link
Member Author

cc @dotnet/jit-contrib PTAL @EgorBo

Some small diffs

superpmi-diffs failure looks like an infra issue.

@jakobbotsch jakobbotsch marked this pull request as ready for review May 16, 2024 09:37
@jakobbotsch jakobbotsch requested a review from EgorBo May 16, 2024 09:37
@jakobbotsch jakobbotsch merged commit 93833bb into dotnet:main May 16, 2024
105 of 107 checks passed
@jakobbotsch jakobbotsch deleted the canonicalize-entry-bb branch May 16, 2024 11:01
Ruihan-Yin pushed a commit to Ruihan-Yin/runtime that referenced this pull request May 30, 2024
Canonicalize entry BB before the early transformations instead of doing
it as part of the transformations. This allows us to move the morph DFS
even earlier, which will be useful for other phases as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.

None yet

2 participants