perf(interp): keep loop-carried locals in registers - #166
Conversation
|
Warning Review limit reached
Next review available in: 57 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: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
📝 WalkthroughWalkthroughEligible call-free native loops now keep up to seven scalar locals authoritative in ARM64 registers across back-edges. The lowerer commits them on exits and state boundaries, with plan eligibility, correctness tests, benchmark procedures, and JIT ownership documentation updated. ChangesLoop-carried register lowering
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant Plan as staticPlan/tracePlan
participant Lowerer as arm64Lowerer
participant NativeLoop as Native loop
participant VM as VM stack/interpreter
Plan->>Lowerer: provide eligible carried locals
Lowerer->>NativeLoop: keep scalar locals in X19-X25
NativeLoop->>Lowerer: reach exit, yield, trap, or completion
Lowerer->>VM: commit carried locals to VM slots
Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Summary
Impact
Five-pair interleaved A/B medians on Apple M4 Pro (
darwin/arm64, Go 1.26.2,-benchtime=300ms):Validation
make lintmake testgo test -race ./interp -count=1 -timeout=10mmake check-generatedmake benchmark-prgit diff --checkCloses #163
Summary by CodeRabbit
Performance
Bug Fixes
Documentation