Skip to content

Comments

JIT: minor cleanups in RBO#124759

Merged
AndyAyersMS merged 1 commit intodotnet:mainfrom
AndyAyersMS:RboCleanup
Feb 23, 2026
Merged

JIT: minor cleanups in RBO#124759
AndyAyersMS merged 1 commit intodotnet:mainfrom
AndyAyersMS:RboCleanup

Conversation

@AndyAyersMS
Copy link
Member

Fix comment and spelling issues, fix an incorrect jitdump arg, simplify a Boolean expression, consolidate a pair of visitors into one.

Fix comment and spelling issues, fix an incorrect jitdump arg,
simplify a Boolean expression, consolidate a pair of visitors into one.
@github-actions github-actions bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Feb 23, 2026
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@AndyAyersMS
Copy link
Member Author

@EgorBo PTAL
FYI @dotnet/jit-contrib

No diffs.

I asked copilot to review the code and here are some things it found. I want it to enhance RBO to handle switches but haven't got any useful changes from it yet.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR performs minor code quality improvements to the Redundant Branch Optimization (RBO) phase in the JIT compiler. The changes include fixing typos, correcting documentation, and simplifying code without affecting functionality.

Changes:

  • Fixed incorrect jitdump argument reference from bbFalse to bbTrue
  • Corrected spelling errors in comments ("domnating" → "dominating", "providced" → "provided", "staring" → "starting")
  • Updated function header comments to accurately describe what the functions do
  • Simplified a Boolean expression to be more idiomatic
  • Consolidated duplicate lambda visitor code into a single implementation with conditional budget checking

Copy link
Member

@EgorBo EgorBo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AndyAyersMS AndyAyersMS merged commit ec52b77 into dotnet:main Feb 23, 2026
132 of 134 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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.

2 participants