Visitar URL original
JIT: preserve unused Swift error results by AndyAyersMS · Pull Request #137526 · dotnet/runtime · GitHub
Skip to content

JIT: preserve unused Swift error results - #137526

Open
AndyAyersMS wants to merge 1 commit into
dotnet:mainfrom
AndyAyersMS:jit/preserve-swift-error
Open

AndyAyersMS wants to merge 1 commit into
dotnet:mainfrom
AndyAyersMS:jit/preserve-swift-error

Conversation

@AndyAyersMS

Copy link
Copy Markdown
Member

Preserve GT_SWIFT_ERROR during dead-store side-effect extraction so lowering and LSRA can still find the result when it is unused. Add P/Invoke and function-pointer regressions.

Validated on macOS arm64: Checked build and Swift error suite under JIT and NativeAOT passed. The ReadyToRun repro asserts before the fix and compiles afterward. SuperPMI: 446,262 contexts, no diffs or misses.

Resolves #136523

Note

This PR description was generated with GitHub Copilot.

Fixes dotnet#136523

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: dfb97b66-e90e-4673-a5ce-6fbdf442c56d
@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 Nov 14, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 5 pipeline(s).
10 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@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.

@AndyAyersMS

Copy link
Copy Markdown
Member Author

@dotnet/jit-contrib PTAL

Simple fix

This branch has not been deployed

No deployments
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.

JIT: SIGSEGV in Lowering::LowerNonvirtPinvokeCall when a SwiftError local is not read after a CallConvSwift P/Invoke

1 participant