jit: retire the (false,false) walker catch-link arm in flatten_graph - #819
Conversation
The canraise catch-link loop matched on (last_exception.is_some(), last_exc_value.is_some()) and, for (false,false), flattened the link with the ordinary make_link instead of make_exception_link. flatten.py:223-233 insert_exits has no such arm: every block.exits[1:] link is lowered through make_exception_link, which already asserts both are seeded (flatten.py:161-162). The arm was unreachable — 0 hits across the 334-bench synth+top corpus on dynasm. Delete the payload_shape match; catch links now lower straight through make_exception_link, and an unseeded one fails loud there instead of being silently repaired. check.py green: dynasm 329/329, cranelift 329/329, wasm 326/326. Assisted-by: Claude
|
Warning Review limit reached
Next review available in: 19 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🤖 Codex parity reviewStatic analysis of this diff vs the local RPython/PyPy sources (commit c3912bd). Files in the reviewed diff1. Regressions to PyPy parity introduced by this patchNone. 2. Other mismatches introduced by this patchNone. 3. Pre-existing mismatches (already present before this patch)
4. Structural adaptations
|
Retires the last walker-specific exception-CFG adaptation #371 targeted — the follow-up tail to PR #800 (which retired the pcdep regalloc + B1/B2 exception-CFG adaptations and closed #371).
What changed
GraphFlattener::flatten_graph's canraise catch-link loop matched on(last_exception.is_some(), last_exc_value.is_some())and, for(false, false), flattened the link with the ordinarymake_linkinstead ofmake_exception_link— a repair for an extra normal/explicit-raise edge the PC-sequential walker could leave after the first slot.flatten.py:223-233 insert_exitshas no such arm: everyblock.exits[1:]link is lowered throughmake_exception_link, which already asserts bothlast_exceptionandlast_exc_valueare seeded (flatten.py:161-162; pyre mirrors this assertion inmake_exception_link). Thepayload_shapematch is deleted so catch links lower straight throughmake_exception_link, and an unseeded catch link now fails loud there instead of being silently repaired.Why it's safe
The arm was unreachable — 0 hits across the full 334-bench synth+top corpus on dynasm (probe-armed build). The 4 benches that previously could not be evaluated (
except_star,exception_group_type,exception_subclass_attrs,slots_class_var_conflict— SIGBUS on a stale-LLBC base) all match python3.14 on freshly re-extracted LLBC.Verification
check.pygreen on all backends: dynasm 329/329, cranelift 329/329, wasm 326/326.🤖 Generated with Claude Code