Skip to content

Split-TU: extract JitPowIntegerEmitExponents70to79 (#36387) - #37653

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-36387-exponents-70-79
Sep 9, 2026
Merged

Split-TU: extract JitPowIntegerEmitExponents70to79 (#36387)#37653
PurHur merged 1 commit into
masterfrom
agent/issue-36387-exponents-70-79

Conversation

@PurHur

@PurHur PurHur commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Summary

php-src: Zend/zend_operators.c (pow_function / zend_pow / mul_function); ext/standard/math.c PHP_FUNCTION(pow).

Test plan

  • php -l hub / High / Exponents70to79 → OK
  • php 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.sh9/9
  • make north-star5-verify-fast → OK (Spine 8591/8591)

Closes nothing (slice of #36387).

Made with Cursor

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>
@PurHur
PurHur merged commit 8e5b387 into master Sep 9, 2026
1 of 2 checks passed
@PurHur
PurHur deleted the agent/issue-36387-exponents-70-79 branch September 9, 2026 16:22
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant