Skip to content

JIT: Mark profile inconsistent during flow opts if OSR entry is involved - #111362

Merged
amanasifkhalid merged 1 commit into
dotnet:mainfrom
amanasifkhalid:fix-profile-consistency-flow-opts
Jan 13, 2025
Merged

amanasifkhalid merged 1 commit into
dotnet:mainfrom
amanasifkhalid:fix-profile-consistency-flow-opts

Conversation

@amanasifkhalid

Copy link
Copy Markdown
Contributor

OSR entry weights are frequently imbalanced, so we skip profile consistency checks for them. However, fgUpdateFlowGraph can propagate these weights to normal blocks, which are checked for profile consistency. If we think this happened, liberally mark the profile as inconsistent. Fixes #111343.

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jan 13, 2025
@amanasifkhalid

Copy link
Copy Markdown
Contributor Author

/azp run runtime-coreclr libraries-pgo

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@amanasifkhalid

Copy link
Copy Markdown
Contributor Author

cc @dotnet/jit-contrib, @AndyAyersMS PTAL. No diffs (only affects debug assert behavior). Thanks!

@amanasifkhalid

Copy link
Copy Markdown
Contributor Author

libraries-pgo failures are #111345 and #111344.

@amanasifkhalid

Copy link
Copy Markdown
Contributor Author

/ba-g macOS arm64 tests are hanging

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.

Assertion failed '!"Inconsistent profile data"'

2 participants