Revert "JIT: support SSA-aware PHI jump threading"#126969
Closed
MichalStrehovsky wants to merge 1 commit intomainfrom
Closed
Revert "JIT: support SSA-aware PHI jump threading"#126969MichalStrehovsky wants to merge 1 commit intomainfrom
MichalStrehovsky wants to merge 1 commit intomainfrom
Conversation
This reverts commit 578644c.
9 tasks
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Member
Author
|
/azp run runtime-nativeaot-outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
There was a problem hiding this comment.
Pull request overview
Reverts the previously introduced SSA-aware PHI jump-threading support in CoreCLR JIT redundant-branch optimizations, likely to validate/restore behavior for outer-loop scenarios.
Changes:
- Remove SSA/VN rewrite machinery for non-local PHI uses during jump threading and revert PHI-based threading to require locally-consumed PHIs.
- Simplify
optJumpThreadCheckfrom a multi-state result back to a boolean eligibility check, removing related helper APIs. - Remove the accompanying JIT regression test (
JumpThreadPhi) and the dedicatedCompMemKindentry that was only used by the reverted feature.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/tests/JIT/opt/RedundantBranch/JumpThreadPhi.csproj | Removes the test project introduced with the reverted change. |
| src/tests/JIT/opt/RedundantBranch/JumpThreadPhi.cs | Removes the test case introduced with the reverted change. |
| src/coreclr/jit/redundantbranchopts.cpp | Reverts SSA-aware PHI jump-threading handling, removing PHI-use tracking and SSA/VN rewrites; restores stricter eligibility checks. |
| src/coreclr/jit/compmemkind.h | Removes the RedundantBranch allocator kind that is no longer referenced after the revert. |
| src/coreclr/jit/compiler.h | Removes the JumpThreadCheckResult API surface and related declarations, matching the reverted implementation. |
This was referenced Apr 16, 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.
Checking if this broke outerloops.
Reverts #126812