Skip to content

JIT: don't reorder blocks early - #104213

Closed
AndyAyersMS wants to merge 1 commit into
dotnet:mainfrom
AndyAyersMS:MoreBlockOpts
Closed

AndyAyersMS wants to merge 1 commit into
dotnet:mainfrom
AndyAyersMS:MoreBlockOpts

Conversation

@AndyAyersMS

Copy link
Copy Markdown
Member

No description provided.

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jun 30, 2024
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@AndyAyersMS

Copy link
Copy Markdown
Member Author

@amanasifkhalid @jakobbotsch FYI

In principle we don't need to reorder block early anymore. But that bit also does some of the anticipatory "early" jump threading.

Seems like we could disable this now? We recognize and optimize a few more loops and enable some unrolling (which seems to account for some of the regressions, haven't dug into them all).

@amanasifkhalid

Copy link
Copy Markdown
Contributor

Thanks for getting this started! If you decide to pursue this, we'll only be calling fgReorderBlocks from optOptimizeLayout, right? In that case, I think you can get rid of its useProfile parameter altogether.

@AndyAyersMS

Copy link
Copy Markdown
Member Author

Will revisit this in .NET 10.

@github-actions github-actions Bot locked and limited conversation to collaborators Aug 30, 2024
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