Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

JIT: remove match accounting from inliner state machine #8935

Merged
merged 1 commit into from
Jan 13, 2017

Conversation

AndyAyersMS
Copy link
Member

@AndyAyersMS AndyAyersMS commented Jan 13, 2017

The inliner's code-size estimating state machine keeps count of
matches, but the count was only used in an assert that checked
that the count did not overflow.

The assert fired when jit stress drove the inliner to evaluate a
huge method as a potential inline candidate and the count reached
the overflow value.

This change removes the counting and the related assert.

Closes #8932.

@AndyAyersMS
Copy link
Member Author

@pgavlin PTAL
cc @dotnet/jit-contrib

@BruceForstall
Copy link

LGTM

The inliner's code-size estimating state machine keeps count of
matches, but the count was only used in an assert that checked
that the count did not overflow.

The assert fired when jit stress drove the inliner to evaluate a
huge method as a potential inline candidate and the count reached
the overflow value.

This change removes the counting and the related assert.

Closes #8932.
@AndyAyersMS
Copy link
Member Author

Fixed a couple of typos in the commit message.

@AndyAyersMS
Copy link
Member Author

@dotnet-bot retest Linux ARM Emulator Cross Debug Build

@AndyAyersMS AndyAyersMS merged commit 9d01c0e into dotnet:master Jan 13, 2017
@AndyAyersMS AndyAyersMS deleted the FixSmAssert branch January 13, 2017 18:21
@karelz karelz modified the milestone: 2.0.0 Aug 28, 2017
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
JIT: remove match accounting from inliner state machine

Commit migrated from dotnet/coreclr@9d01c0e
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants