Split-TU: extract JitPowIntegerEmitExponents70to79 (#36387) - #37653
Merged
Conversation
Move seventieth…seventyninth chained-smul emit out of JitPowIntegerEmitHigh so gen-0 spine gains another TU (High 47k→30k + 17k). Hub dispatches 70–79 before High (80–91). Also null-guard Exponents50to69 tryEmit for runtime exponents. Spine 8590→8591. php-src: Zend/zend_operators.c pow_function/zend_pow; ext/standard/math.c PHP_FUNCTION(pow). Co-authored-by: Cursor <cursoragent@cursor.com>
2 tasks
PurHur
added a commit
that referenced
this pull request
Sep 9, 2026
Lower compile-time exponent 92 via (ninetyfirst×n) chained smul.with.overflow in JitPowIntegerEmitHigh — omit llvm.pow.f64. Even: (-1)**92 === 1. Rebased onto master after Exponents70to79 split-TU (#37653). Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur
added a commit
that referenced
this pull request
Sep 9, 2026
…) (#37654) Lower compile-time exponent 92 via (ninetyfirst×n) chained smul.with.overflow in JitPowIntegerEmitHigh — omit llvm.pow.f64. Even: (-1)**92 === 1. Rebased onto master after Exponents70to79 split-TU (#37653). Co-authored-by: PurHur <PurHur@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Sep 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
JitPowIntegerEmitExponents70to79— move seventieth…seventyninth chained-smul emit (~17k lines) out ofJitPowIntegerEmitHighso gen-0 spine gains another TU (Part of Performance: compile-time targets and gate — hello-world ≤ 3 s warm, MiniWebApp ≤ 10 s, 400 statements per function in < 5 s, one-file edit rebuild < 25 % of full, spine gen-0 < 30 min with split-TU (script/bench-gate.php --compile, bin/compile.php, lib/Compiler.php) (re-#36224 slice 2, re-#36199) #36387).JitPowIntegerEmitHigh46827 → 29875 (80–91 only); new class 17003; hub dispatches 70–79 before High; spine 8590 → 8591.php-src:
Zend/zend_operators.c(pow_function/zend_pow/mul_function);ext/standard/math.cPHP_FUNCTION(pow).Test plan
php -lhub / High / Exponents70to79 → OKphp script/check-size-budgets.php→ OK (151 entries)./script/spine-sync.sh --no-link→ spine 8591/8591./script/phpunit.sh --filter 'NoThrowPowSeventiethMulAotTest|NoThrowPowSeventyninthMulAotTest|NoThrowPowEightiethMulAotTest|NoThrowPowSixtyninthMulAotTest|NoThrowPowNinetiethMulAotTest'→ 20/20./script/aot-smoke.sh→ 9/9make north-star5-verify-fast→ OK (Spine 8591/8591)Closes nothing (slice of #36387).
Made with Cursor