Skip to content

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

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

Perf: typed int **103 / pow(n,103) chained smul omit llvm.pow.f64 (#36386)#37692
PurHur wants to merge 1 commit into
masterfrom
agent/issue-36386-pow-hundredthird-smul

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

  • ./script/phpunit.sh --filter NoThrowPowHundredthirdMulAotTest4/4 (23 assertions)
  • script/differential-sweep.sh --aot --repeat 3 --dir test/differential/cases/_pow103_only1/1 match Zend
  • ./script/aot-smoke.sh9/9 + size gate OK
  • Full script/differential-sweep.sh --aot --repeat 3 (142/142) not re-run this slice (append-only peer of Perf: typed int **102 / pow(n,102) chained smul omit llvm.pow.f64 (#36386) #37688)

Closes nothing (tracker #36386 remains open for further codegen slices).

Made with Cursor

…6386)

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

Duplicate of #37691 (same **103 slice landed first). Closing; continuing #36386 with **104.

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