-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Conversation
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.
@amanasifkhalid PTAL Should be zero diff. I will add more uses of this subsequently. |
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Co-authored-by: Aman Khalid <amankhalid@microsoft.com>
Hmm, there are a few SPMI diffs. I didn't see these locally. Let me re-check. |
There was a loop of size exactly 400, which we now clone. |
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.