Skip to content

Feed MIBC PGO data into ServiceHub CoreComponents crossgen2 - #83301

Merged
JoeRobich merged 1 commit into
dotnet:mainfrom
olegtk:dev/olegtk/FixCrossGenPgo
Apr 24, 2026
Merged

JoeRobich merged 1 commit into
dotnet:mainfrom
olegtk:dev/olegtk/FixCrossGenPgo

Conversation

@olegtk

@olegtk olegtk commented Apr 22, 2026 •

Copy link
Copy Markdown
Contributor

The CrossGen OptProf pipeline now produces mergedTrace.mibc with profile-guided optimization data for .NET Core assemblies, but the ServiceHub CoreComponents crossgen2 step was not consuming it. This means R2R compilation used only static heuristics, resulting in excess JIT in the DevHub process.

This change passes the MIBC directory to MSBuild via ServiceHubMibcDataDir

Microsoft Reviewers: Open in CodeFlow

@olegtk
olegtk requested review from a team as code owners April 22, 2026 21:52
@olegtk
olegtk marked this pull request as draft April 22, 2026 21:52
@dotnet-policy-service dotnet-policy-service Bot added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Apr 22, 2026
Comment thread azure-pipelines-official.yml Resolved
@olegtk
olegtk force-pushed the dev/olegtk/FixCrossGenPgo branch from 89f3957 to a207855 Compare April 22, 2026 22:00
@olegtk

olegtk commented Apr 22, 2026

Copy link
Copy Markdown
Contributor Author

/pr-val a207855

@github-actions

Copy link
Copy Markdown
Contributor

You do not have permission to trigger this workflow. Only Microsoft employees who are contributors to the roslyn repository can run pipelines.

@github-actions

Copy link
Copy Markdown
Contributor

Failed to trigger the pipeline. Please check the workflow logs for details.

@dibarbet

Copy link
Copy Markdown
Member

/pr-val a207855

@github-actions

Copy link
Copy Markdown
Contributor

View PR Validation Run triggered by @dibarbet

Parameters
  • Validation Type: pr-val
  • Pipeline ID: 8972
  • Pipeline Version: main
  • PR Number: 83301
  • Commit SHA: a207855a708ac3b422dbe146e83badc95f8fd875
  • Source Branch: dev/olegtk/FixCrossGenPgo
  • Target Branch: main
  • Build ID: 13913055

@olegtk
olegtk force-pushed the dev/olegtk/FixCrossGenPgo branch 2 times, most recently from cfd1c57 to 44a2e5f Compare April 22, 2026 23:13
The CrossGen OptProf pipeline produces mergedTrace.mibc with profile-guided
optimization data for .NET Core assemblies. The DD-VS-PR-OptProf pipeline
already publishes this MIBC file into the OptimizationInputs drop alongside
.ibc files — the same drop that Roslyn's official build downloads via
Arcade's VisualStudio.AcquireOptimizationData.targets.

However, the ServiceHub CoreComponents crossgen2 step was not consuming it.
This means R2R compilation used only static heuristics, resulting in excess
JIT in processes that load these assemblies (e.g. DevHub).

This change adds a glob for *.mibc files in the IBC optimization data
directory and passes them as --mibc flags to crossgen2.
@olegtk
olegtk force-pushed the dev/olegtk/FixCrossGenPgo branch from 44a2e5f to aacc62c Compare April 22, 2026 23:14
@olegtk
olegtk marked this pull request as ready for review April 23, 2026 17:17
@dibarbet

Copy link
Copy Markdown
Member

/pr-val aacc62c

@github-actions

Copy link
Copy Markdown
Contributor

View PR Validation Run triggered by @dibarbet

Parameters
  • Validation Type: pr-val
  • Pipeline ID: 8972
  • Pipeline Version: main
  • PR Number: 83301
  • Commit SHA: aacc62c9fcc2351a4304e4c78991808f99779fa3
  • Source Branch: dev/olegtk/FixCrossGenPgo
  • Target Branch: main
  • Build ID: 13920140

@JoeRobich
JoeRobich merged commit 8d74390 into dotnet:main Apr 24, 2026
28 checks passed
@dotnet-policy-service dotnet-policy-service Bot added this to the Next milestone Apr 24, 2026
@JoeRobich JoeRobich modified the milestones: Next, 18.7 Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants