Repository navigation
Remove the redundant jump in the HW intrinsic jump table fallback - #135685
Conversation
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. |
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
|
Simple change which handles the pessimization and gets |
There was a problem hiding this comment.
🟢 Approval recommended
The focused code-generation optimization preserves control flow and has appropriate JIT validation.
0 open findings
What changed in this PR
Removes the redundant final jump from x64 hardware-intrinsic jump-table fallbacks, reducing generated code size without changing behavior.
Changes:
- Defers case-ending jumps until the next iteration.
- Allows the final case to fall through directly to the switch end.
| File | Description |
|---|---|
src/coreclr/jit/hwintrinsiccodegenxarch.cpp |
Omits the redundant jump after the final emitted switch case. |
🧠 Review effort: Balanced
|
/ba-g unrelated http timeouts |
Avoid emitting an unconditional jump after the final case in the x64 hardware-intrinsic jump-table fallback. Earlier cases retain their jumps to the switch end.
PMI on the original corpus/base measured a 1,302-byte reduction across 438 methods. This measurement predates the rebase onto current
dotnet/mainand was not refreshed.Validation on the combined rebased branch:
build.cmd clr+libs -rc Checked -lc Release— passed, 0 warnings and 0 errors.src\tests\build.cmd x64 checked -tree JIT /p:LibrariesConfiguration=Release— passed.src\tests\run.cmd x64 checked -tree JIT— passed, 3,466 passed, 0 failed, 107 skipped (3,573 total).build.cmd clr.jit -c Release— passed, 0 warnings and 0 errors.python3 src/coreclr/scripts/jitformat.py -r . -o windows -a x64 -j D:\repos\jitutils— passed; no formatting changes.Note
This PR description was generated with GitHub Copilot.