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: split loop headers that are also try entries #110880

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AndyAyersMS
Copy link
Member

when there are backedges that have exited the try. This allows the preheader and header to be in the same EH region and may unblock other optimizations.

This is done by splitting the header block and making the trailing portion be the try entry. Perform a mid (or end) block split if the initial (or all) statements in the header cannot throw.

Fixes #96887.

Enable cloning of loops with EH.

when there are backedges that have exited the try. This allows
the preheader and header to be in the same EH region and may
unblock other optimizations.

This is done by splitting the header block and making the trailing
portion be the try entry. Perform a mid (or end) block split if the
initial (or all) statements in the header cannot throw.

Fixes dotnet#96887.

Enable cloning of loops with EH.
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.

JIT: Consider canonicalizing loops whose header is the beginning of a try
1 participant