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: have inliner use fgSplitBlockAfterStatement #80928

Merged
merged 1 commit into from
Jan 20, 2023

Conversation

AndyAyersMS
Copy link
Member

In anticipation of moving pred list building before inlining, use the common block split utility instead of custom code. This does a better job of propagating IL offsets, and automatically handles pred list maintenance.

Contributes to #80193.

In anticipation of moving pred list building before inlining,
use the common block split utility instead of custom code. This does a
better job of propagating IL offsets, and automatically handles
pred list maintenance.

Contributes to dotnet#80193.
@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 Jan 20, 2023
@ghost ghost assigned AndyAyersMS Jan 20, 2023
@ghost
Copy link

ghost commented Jan 20, 2023

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

Issue Details

In anticipation of moving pred list building before inlining, use the common block split utility instead of custom code. This does a better job of propagating IL offsets, and automatically handles pred list maintenance.

Contributes to #80193.

Author: AndyAyersMS
Assignees: AndyAyersMS
Labels:

area-CodeGen-coreclr

Milestone: -

@AndyAyersMS
Copy link
Member Author

@EgorBo PTAL
cc @dotnet/jit-contrib

No code diffs, some debug info diffs.

@EgorBo
Copy link
Member

EgorBo commented Jan 20, 2023

Nice cleanup! I wonder how many other places we have where we do something that we already have a helper for. It also seems that fgSplitBlockAfterStatement might be even more correct because it has special handling for e.g. switches

@AndyAyersMS AndyAyersMS merged commit 861a886 into dotnet:main Jan 20, 2023
@AndyAyersMS AndyAyersMS mentioned this pull request Jan 20, 2023
44 tasks
mdh1418 pushed a commit to mdh1418/runtime that referenced this pull request Jan 24, 2023
In anticipation of moving pred list building before inlining,
use the common block split utility instead of custom code. This does a
better job of propagating IL offsets, and automatically handles
pred list maintenance.

Contributes to dotnet#80193.
@ghost ghost locked as resolved and limited conversation to collaborators Feb 20, 2023
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