Skip to content

Perf: lazy-box native-long unary minus INT_MIN (#36386) - #37060

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-36386-native-long-unary-minus-lazy
Sep 6, 2026
Merged

Perf: lazy-box native-long unary minus INT_MIN (#36386)#37060
PurHur merged 1 commit into
masterfrom
agent/issue-36386-native-long-unary-minus-lazy

Conversation

@PurHur

@PurHur PurHur commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Summary

php-src: Zend/zend_operators.c zendi_negate_function.

Part of #36386.

Test plan

  • ./script/phpunit.sh --filter NativeLongUnaryMinusHeapLazyAotTest3/3
  • ./script/aot-smoke.sh9/9 + size gate OK
  • make north-star5-verify-fast → OK (spine 8346/8346)
  • script/differential-sweep.sh --aot --repeat 3 on e25_unary + arith peers → 5/5 (e27 10/10)

Made with Cursor

Hot-path typed int negate stays TYPE_NATIVE_LONG; PHP_INT_MIN stores f64 only and reuses materializeOverflowableNativeLong (peer of ±/×/`/` lazy overflow). php-src: Zend/zend_operators.c zendi_negate_function.

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