Skip to content

Perf: typed int **106 / pow(n,106) chained smul omit llvm.pow.f64 (#36386) - #37704

Closed
PurHur wants to merge 1 commit into
masterfrom
agent/issue-36386-pow106-smul
Closed

PurHur wants to merge 1 commit into
masterfrom
agent/issue-36386-pow106-smul

Conversation

@PurHur

@PurHur PurHur commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Summary

Part of #36386.

Test plan

  • vendor/bin/phpunit --filter 'NoThrowPowHundred(fifth|sixth)MulAotTest'8/8 (46 assertions)
  • Zend vs AOT on test/differential/cases/pow_hundredsixth_smul_36386.php → identical (0/1/1/0 + doubles); IR has 0 llvm.pow.f64, 203 smul.with.overflow
  • ./script/aot-smoke.sh9/9; size gate OK
  • php script/check-size-budgets.php → OK (157)
  • make north-star5-verify-fastOK

Made with Cursor

…6386)

Lower compile-time exponent 106 via (hundredfifth×n) chained smul.with.overflow
in JitPowIntegerEmitHigh — omit llvm.pow.f64. Even: (-1)**106 === 1.
Append-only (no new spine TU).

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 commented Sep 9, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #37703 (same **106 slice already on master). Closing duplicate.

@PurHur PurHur closed this Sep 9, 2026
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