Skip to content

Don't run RangeCheck if no GT_BOUNDS_CHECK were seen#112512

Merged
EgorBo merged 5 commits intodotnet:mainfrom
EgorBo:improve-tp
Feb 14, 2025
Merged

Don't run RangeCheck if no GT_BOUNDS_CHECK were seen#112512
EgorBo merged 5 commits intodotnet:mainfrom
EgorBo:improve-tp

Conversation

@EgorBo
Copy link
Copy Markdown
Member

@EgorBo EgorBo commented Feb 13, 2025

Also, make m_conservative be the first field in ValueNumPair because we access it more frequently than m_liberal.

Improves JIT TP. Diffs.

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Feb 13, 2025
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

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

@EgorBo EgorBo marked this pull request as ready for review February 13, 2025 04:48
Copilot AI review requested due to automatic review settings February 13, 2025 04:48
Copy link
Copy Markdown
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.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (5)
  • src/coreclr/jit/compiler.h: Language not supported
  • src/coreclr/jit/morph.cpp: Language not supported
  • src/coreclr/jit/rangecheck.cpp: Language not supported
  • src/coreclr/jit/valuenum.cpp: Language not supported
  • src/coreclr/jit/valuenumtype.h: Language not supported

@EgorBo
Copy link
Copy Markdown
Member Author

EgorBo commented Feb 13, 2025

PTAL @dotnet/jit-contrib simple change, Diffs.

Copy link
Copy Markdown
Contributor

@amanasifkhalid amanasifkhalid left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

#define OMF_HAS_RECURSIVE_TAILCALL 0x00040000 // Method contains recursive tail call
#define OMF_HAS_EXPANDABLE_CAST 0x00080000 // Method contains casts eligible for late expansion
#define OMF_HAS_STACK_ARRAY 0x00100000 // Method contains stack allocated arrays
#define OMF_HAS_BOUND_CHECKS 0x00200000 // Method contains bounds checks
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: Should we make it consistent with GT_BOUNDS_CHECK, and call it OMF_HAS_BOUNDS_CHECKS?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Addressed

@EgorBo EgorBo merged commit 87959c6 into dotnet:main Feb 14, 2025
@EgorBo EgorBo deleted the improve-tp branch February 14, 2025 04:09
@github-actions github-actions bot locked and limited conversation to collaborators Mar 16, 2025
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.

4 participants