Skip to content

Revert "JIT: support SSA-aware PHI jump threading"#126969

Closed
MichalStrehovsky wants to merge 1 commit intomainfrom
revert-126812-RboSimpleSSAUpdates
Closed

Revert "JIT: support SSA-aware PHI jump threading"#126969
MichalStrehovsky wants to merge 1 commit intomainfrom
revert-126812-RboSimpleSSAUpdates

Conversation

@MichalStrehovsky
Copy link
Copy Markdown
Member

Checking if this broke outerloops.

Reverts #126812

Copilot AI review requested due to automatic review settings April 15, 2026 22:10
@MichalStrehovsky MichalStrehovsky added the NO-REVIEW Experimental/testing PR, do NOT review it label Apr 15, 2026
@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 Apr 15, 2026
@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.

@MichalStrehovsky
Copy link
Copy Markdown
Member Author

/azp run runtime-nativeaot-outerloop

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

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.

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 optJumpThreadCheck from a multi-state result back to a boolean eligibility check, removing related helper APIs.
  • Remove the accompanying JIT regression test (JumpThreadPhi) and the dedicated CompMemKind entry 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.

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 NO-REVIEW Experimental/testing PR, do NOT review it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants