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

NativeAOT: Run some optimization phases twice #72539

Closed
wants to merge 1 commit into from

Conversation

EgorBo
Copy link
Member

@EgorBo EgorBo commented Jul 20, 2022

In JIT we have a debug-only mode where we can run some optimization phases multiple times. It feels to me that we can enable it for NativeAOT even in Release. And I have a feeling that it should bring some nice diffs (probably needs jit-utils for proper diffs) - let's see what CI thinks about it.

E.g in #70907 I've got nice diffs by simply running optRedundantBranches twice.

PS: not for net 7.0

@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 Jul 20, 2022
@ghost ghost assigned EgorBo Jul 20, 2022
@ghost
Copy link

ghost commented Jul 20, 2022

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

Issue Details

In JIT we have a debug-only mode where we can run some optimization phases multiple times. It feels to me that we can enable it for NativeAOT even in Release. And I have a feeling that it should bring some nice diffs (probably needs jit-utils for proper diffs) - let's see what CI thinks about it.

E.g in #70907 I've got nice diffs by simply running optRedundantBranches twice.

Author: EgorBo
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@EgorBo
Copy link
Member Author

EgorBo commented Jul 20, 2022

Ah, optRepeat seems to be broken - a lot of various asserts, but I still think it's worth a try someday

@EgorBo EgorBo closed this Jul 20, 2022
@EgorBo EgorBo deleted the run-multiple-phases-nativeaot branch July 20, 2022 23:13
@ghost ghost locked as resolved and limited conversation to collaborators Aug 20, 2022
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