Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

jakobbotsch
Copy link
Member

Factor out SSA's general DFS that builds a post-order and make it its own pass. Use it to eliminate dead blocks as well and invoke it in a few different places within the JIT. The computed post-orders are not used yet, but I have plans to use it in local morph and in physical promotion. We should also be able to switch cross block local morph to use it instead of computing its own RPO. Finally, I want to see if this can replace some of the dense reachability computations that loop finding is doing... it's not totally clear to me yet.

Factor out SSA's general DFS that builds a post-order and make it its
own pass. Use it to eliminate dead blocks as well and invoke it in a few
different places within the JIT. The computed post-orders are not used
yet, but I have plans to use it in local morph and in physical
promotion. We should also be able to switch cross block local morph to
use it instead of computing its own RPO. Finally, I want to see if this
can replace some of the dense reachability computations that loop
finding is doing... it's not totally clear to me yet.
@ghost ghost assigned jakobbotsch Nov 21, 2023
@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Nov 21, 2023
@ghost
Copy link

ghost commented Nov 21, 2023

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

Issue Details

Factor out SSA's general DFS that builds a post-order and make it its own pass. Use it to eliminate dead blocks as well and invoke it in a few different places within the JIT. The computed post-orders are not used yet, but I have plans to use it in local morph and in physical promotion. We should also be able to switch cross block local morph to use it instead of computing its own RPO. Finally, I want to see if this can replace some of the dense reachability computations that loop finding is doing... it's not totally clear to me yet.

Author: jakobbotsch
Assignees: jakobbotsch
Labels:

area-CodeGen-coreclr

Milestone: -

@jakobbotsch
Copy link
Member Author

#95251 does the main chunk of this. I'll add the unreachable part once I get to a point where I want to start using the reverse post-order in more places.

@jakobbotsch jakobbotsch deleted the dead-block-elimination branch November 28, 2023 11:01
@github-actions github-actions bot locked and limited conversation to collaborators Dec 29, 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.

1 participant