Perf: typed int **111 / pow(n,111) chained smul omit llvm.pow.f64 (#36386) - #37722
Merged
Merged
Conversation
…6386) Lower compile-time exponent 111 via (hundredtenth×n) chained smul.with.overflow in JitPowIntegerEmitHigh — omit llvm.pow.f64. Odd: (-1)**111 === -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>
3 tasks
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
111via(hundredtenth×n)chainedsmul.with.overflowinJitPowIntegerEmitHigh— omitllvm.pow.f64.(-1)**111 === -1. Append-only (no new spine TU).#36386 % 3 == 2); lane overflow: CI: php-llvm-structgep-assert.patch fails to apply — blocks north-star5-verify-fast and all bootstrap gates #36143–VM: 1M-iteration loops exit 255 silently — restore compute-suite headroom on bin/vm.php #36148 / RunForge north star (Sep 2026): trust, build speed, performance — automation tracker #36142 children closed.php-src:
Zend/zend_operators.cpow_function/zend_pow/mul_function;ext/standard/math.cPHP_FUNCTION(pow).Test plan
./script/phpunit.sh --filter 'NoThrowPowHundredeleventhMulAotTest'→ OK (4 tests, 23 assertions)./script/aot-smoke.sh→ 9 passed, 0 failed (+ size gate OK)./script/differential-sweep.sh --aot --repeat 3 --dir test/differential/cases/_pow111_only→ 1/1 match Zend (temp dir withpow_hundredeleventh_smul_36386.phponly; removed after)php script/check-size-budgets.php→ OK (157 entries)Made with Cursor