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: Propagate LCL_ADDRs into natural loops #109190

Merged
merged 3 commits into from
Oct 25, 2024

Conversation

jakobbotsch
Copy link
Member

@jakobbotsch jakobbotsch commented Oct 24, 2024

We can allow keeping assertions around for natural loop headers provided that we precompute the set of locals whose assertions may be killed inside the loop.

Reusing LoopLocalOccurrences did not turn out to be simple because of differences in walking IR and also because this runs at a time where the IR is in an odd state due to halfway morphed promoted implicit byref locals.

New version of #102965

We can allow keeping assertions around for natural loop headers provided
that we precompute the set of locals whose assertions may be killed
inside the loop.
@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 Oct 24, 2024
@jakobbotsch
Copy link
Member Author

cc @AndyAyersMS

Copy link
Contributor

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

Only do the IR walk when we have assertions going into a loop.
@jakobbotsch
Copy link
Member Author

cc @dotnet/jit-contrib PTAL @AndyAyersMS

Diffs

@jakobbotsch jakobbotsch marked this pull request as ready for review October 25, 2024 15:51
@jakobbotsch jakobbotsch merged commit 9228ccf into dotnet:main Oct 25, 2024
108 checks passed
@jakobbotsch jakobbotsch deleted the lcl-addr-loops branch October 25, 2024 16:28
@DrewScoggins
Copy link
Member

Windows x64 Improvements: dotnet/perf-autofiling-issues#43918

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.

3 participants