Repository navigation
Rename BBINSTR and BBOPT to PGO_INSTR and PGO_OPT - #138232
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 6 pipeline(s). 9 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the instrumentation-flag rename.
No open issues 🎉
What changed in this PR
Renames the historical BBINSTR flags to PGO_INSTR to reflect their broader role in profile-guided optimization. The changes preserve flag values and instrumentation behavior while updating diagnostic names.
Changes:
- Rename instrumentation flags consistently across the runtime, JIT, and managed JIT interface.
- Update SuperPMI flag diagnostics and the JIT’s tier-switch diagnostic text.
- Align OSR documentation with the new terminology.
| File | Description |
|---|---|
src/coreclr/vm/tieredcompilation.cpp |
Update flags selected for instrumented compilation tiers. |
src/coreclr/tools/superpmi/superpmi-shared/spmidumphelper.cpp |
Use new names in flag dumps. |
src/coreclr/tools/superpmi/superpmi-shared/methodcontext.cpp |
Update diagnostic flag strings. |
src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs |
Rename managed flag definitions, preserving values. |
src/coreclr/jit/jitee.h |
Rename JIT flags and matching interface assertions. |
src/coreclr/jit/importercalls.cpp |
Update call-probe instrumentation checks. |
src/coreclr/jit/flowgraph.cpp |
Clear renamed flags when switching to optimized compilation. |
src/coreclr/jit/fgprofile.cpp |
Update the synthesized-profile instrumentation check. |
src/coreclr/jit/compiler.h |
Update the instrumentation status helper. |
src/coreclr/jit/compiler.cpp |
Update instrumentation checks, flag assignments, and diagnostic text. |
src/coreclr/inc/corjitflags.h |
Rename native interface flags, preserving values. |
docs/design/features/OsrDetailsAndDebugging.md |
Update flag terminology in OSR documentation. |
Review effort: Balanced
Member
|
Rename JIT_FLAG_BBOPT too? |
Co-authored-by: Copilot App <[email protected]>
Member
Author
Done |
AndyAyersMS
approved these changes
Nov 25, 2026
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BBINSTR and BBOPT are historical names for the profile-guided instrumentation and optimization flags.
Rename both flags and their uses across the JIT/EE interface, CoreCLR, AOT compilation, and SuperPMI diagnostics. Update the OSR design documentation to use PGO_INSTR. Flag values and runtime behavior remain unchanged; only the names and diagnostic text change.
Validation
.\build.cmd clr+libs+host- passed..\src\tests\build.cmd -Test JIT\PGO\InstrumentedTiers\InstrumentedTiers.csproj x64 Debug /p:LibrariesConfiguration=Debug- passed.artifacts\tests\coreclr\windows.x64.Debug\JIT\PGO\InstrumentedTiers\InstrumentedTiers\InstrumentedTiers.cmd- passed.python src\coreclr\scripts\jitformat.py -r . -o windows -a x64- passed.Note
This pull request description was generated with Copilot.