Skip to content

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.
@ghost ghost 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
Contributor

@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!

@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
@github-actions github-actions bot locked and limited conversation to collaborators Jan 7, 2025
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