-
Notifications
You must be signed in to change notification settings - Fork 5k
JIT: Graph-based loop inversion #116017
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
Merged
amanasifkhalid
merged 28 commits into
dotnet:main
from
amanasifkhalid:loop-inversion-graph-based
Jun 4, 2025
Merged
JIT: Graph-based loop inversion #116017
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
a0e3e4d
JIT: Make loop inversion graph based
jakobbotsch 5df0255
Remove debug code
jakobbotsch b75aea7
Fix release build
jakobbotsch d75f60e
Avoid inverting already-inverted loops, duplicate weight manipulation…
jakobbotsch ddc0ea2
Add a couple of quirks
jakobbotsch 99a4321
Run jit-format
jakobbotsch 757d14c
Add a metric for loops inverted
jakobbotsch 2c82f09
Merge branch 'main' of github.com:dotnet/runtime into port-loop-inver…
jakobbotsch e0074ff
Reuse preheader for zero-trip test
jakobbotsch 1931c5a
Compact latch block if possible
jakobbotsch 06854ab
Run jit-format
jakobbotsch 6c24c53
Remove quirks
jakobbotsch f59243f
Merge branch 'main' of github.com:dotnet/runtime into port-loop-inver…
jakobbotsch 1437856
Merge from main; fix profile maintenance
amanasifkhalid b79fc7a
Leave fgRenumberBlocks in for now
amanasifkhalid 8a9a547
Simplify profile maintenance
amanasifkhalid fe411d2
Remove fgRenumberBlocks call
amanasifkhalid 41a6246
Merge branch 'main' into loop-inversion-graph-based
amanasifkhalid 7d1e7c8
Fix fgOptimizeBranch
amanasifkhalid 0f12f5d
Fix another spot in fgOptimizeBranch
amanasifkhalid effd81e
Merge branch 'main' into loop-inversion-graph-based
amanasifkhalid af6f31c
Merge from main
amanasifkhalid d7ec36d
Move phase back
amanasifkhalid 5a4cec5
Merge branch 'main' into loop-inversion-graph-based
amanasifkhalid 7becde0
Add size restriction
amanasifkhalid f44e50d
Merge from main
amanasifkhalid 9c2b945
Refactor loop size calculation, and add inversion size limit
amanasifkhalid 5299576
Fix merge conflict
amanasifkhalid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.