Repository navigation
[JIT] Rationalize: Re-run pre-order processing on identity shuffle rewrite in PreOrderVisit - #134910
Merged
adamperlin merged 8 commits intoOct 20, 2026
Conversation
…ionalize::PreOrderVisit
The replacement loop exits only after node and *use are equal, so the ARM64-specific reload is unnecessary. Also remove trailing whitespace from the adjacent comment. Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 5 pipeline(s). 11 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
Author
|
@dotnet/jit-contrib PTAL |
adamperlin
requested review from
EgorBo and
jakobbotsch
and
a balanced review from Copilot
September 30, 2026 17:28
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The reported Checked-build regression needs a targeted test to prevent recurrence.
Review effort: Balanced
Findings: 1
What changed in this PR
Fixes JIT rationalization so replacement intrinsic nodes receive pre-order processing.
Changes:
- Repeats intrinsic rewriting until the node remains unchanged.
- Ensures nested deferred hardware intrinsics are converted to user calls.
| File | Description |
|---|---|
src/coreclr/jit/rationalize.cpp |
Reprocesses rewritten intrinsic nodes during rationalization. |
EgorBo
approved these changes
Sep 30, 2026
Co-authored-by: Copilot App <[email protected]>
EgorBo
approved these changes
Sep 30, 2026
This was referenced Oct 1, 2026
…reOrderVisit in identity shuffle case
…rewrite-hw-intrinsic-user-call
PreOrderVisitPreOrderVisit
Contributor
Author
|
@EgorBo can you give this one another look? |
EgorBo
approved these changes
Oct 20, 2026
tannergooding
approved these changes
Oct 20, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.

Resolves #133787; This case comes up with IR that looks like the following:
The outer shuffle is the identity, so it is folded away as part of RewriteHwIntrinsicAsUserCall during PreOrderVisit. The inner
ShiftRightLogical128BitLane-- which needs to be re-written back to a GT_CALL since it has a non-constant arg -- is the replacement node, but it is never processed by the preorder visitor. If we get back a different node fromRewrite*Intrinsic, we should re-do the processing logic on that new node.