Skip to content

JIT: Skip unrolling tests stored in locals - #134969

Open
EgorBo wants to merge 2 commits into
dotnet:mainfrom
EgorBo:fix-134934-unroll-test-temp
Open

EgorBo wants to merge 2 commits into
dotnet:mainfrom
EgorBo:fix-134934-unroll-test-temp

Conversation

@EgorBo

@EgorBo EgorBo commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Bail out before unrolling when the analyzed loop test is not the branch condition, avoiding a Checked assert and Release MinOpts fallback.Fixes #134934

Diffs

Bail out before unrolling when the analyzed loop test is not the branch condition, avoiding a Checked assert and Release MinOpts fallback.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@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 Sep 30, 2026
@azure-pipelines

Copy link
Copy Markdown
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.

@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 commented Sep 30, 2026 •

Copy link
Copy Markdown
Member Author

PTAL @jakobbotsch @dotnet/jit-contrib no diffs

@jakobbotsch

Copy link
Copy Markdown
Member

Should the support for this shape rather be removed from optExtractTestIncr?

Instead of bailing out in loop unrolling, stop recognizing loop tests evaluated into a temp. This shape has no SPMI diffs and its partial support led to the unroll precondition failure.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9cae45a2-8eb1-4625-a0bf-fbe425c2dac8

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: (bug) "Bad precondition in Compiler::optUnrollLoops()" noway_assert when the loop test is evaluated into a local

2 participants