Skip to content

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

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-36386-pow-hundredfifth-smul
Sep 9, 2026
Merged

Perf: typed int **105 / pow(n,105) chained smul omit llvm.pow.f64 (#36386)#37697
PurHur merged 1 commit into
masterfrom
agent/issue-36386-pow-hundredfifth-smul

Conversation

@PurHur

@PurHur PurHur commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Summary

Test plan

  • ./script/phpunit.sh --filter NoThrowPowHundredfifthMulAotTest → OK (4 tests, 23 assertions)
  • script/differential-sweep.sh --aot --repeat 3 --dir test/differential/cases/_agent_pow1051/1 match Zend (3/3 runs) — case dir cleaned after
  • ./script/aot-smoke.sh → 9/9 + size gate OK
  • php script/check-size-budgets.php (Docker) → OK
  • ./script/opcode-corpus-md5.sh --check (Docker) → OK

Closes: n/a (Part of #36386)

Made with Cursor

…6386)

Lower compile-time exponent 105 via (hundredfourth×n) chained smul.with.overflow
in JitPowIntegerEmitHigh — omit llvm.pow.f64. Odd: (-1)**105 === -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>
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