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: add more "simple" complexity helpers #110486

Merged
merged 5 commits into from
Dec 7, 2024

Conversation

AndyAyersMS
Copy link
Member

In early phases we haven't set tree costs or size estimates, so we fall back to counting statements or nodes.

Capture some of this in some helper methods, both pure counting and "exceeds" variants (which are potentially cheaper when comparing against a budget).

Update the loop cloning size check to use this.

In early phases we haven't set tree costs or size estimates, so we fall back
to counting statements or nodes.

Capture some of this in some helper methods, both pure counting and "exceeds"
variants (which are potentially cheaper when comparing against a budget).

Update the loop cloning size check to use this.
@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 Dec 6, 2024
@AndyAyersMS
Copy link
Member Author

@amanasifkhalid PTAL
cc @dontnet/jit-contrib

Should be zero diff. I will add more uses of this subsequently.

Copy link
Contributor

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

Copy link
Member

@amanasifkhalid amanasifkhalid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

src/coreclr/jit/block.cpp Outdated Show resolved Hide resolved
src/coreclr/jit/block.cpp Outdated Show resolved Hide resolved
src/coreclr/jit/block.cpp Outdated Show resolved Hide resolved
src/coreclr/jit/block.cpp Outdated Show resolved Hide resolved
Co-authored-by: Aman Khalid <amankhalid@microsoft.com>
@AndyAyersMS
Copy link
Member Author

AndyAyersMS commented Dec 6, 2024

Hmm, there are a few SPMI diffs. I didn't see these locally. Let me re-check.

@AndyAyersMS
Copy link
Member Author

There was a loop of size exactly 400, which we now clone.

@AndyAyersMS AndyAyersMS merged commit 5ae9467 into dotnet:main Dec 7, 2024
104 of 108 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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