Skip to content

Self-host M3: native operand-chain helpers fix compile_driver link (#1768)#2614

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-1768-compile-driver-link
May 26, 2026
Merged

Self-host M3: native operand-chain helpers fix compile_driver link (#1768)#2614
PurHur merged 1 commit into
masterfrom
agent/issue-1768-compile-driver-link

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 26, 2026

Summary

  • Replace PHP CFG lowering of Compiler::unwrapOperandChain and operandsChainEqual with JIT\CompilerOperandChainNative on the M3 compile-driver path (LLVM 9 module verify: "Instruction does not dominate all uses").
  • Add make bootstrap-selfhost-compile-driver-link probe so compiler_helloworld_smoke/compile_driver.php links with PHP_COMPILER_M3_COMPILE_DRIVER=1.

Test plan

  • ./script/bootstrap-selfhost-compile-driver-link-probe.sh (Docker)
  • BOOTSTRAP_M3_HELLOWORLD_STRICT=1 ./script/bootstrap-selfhost-helloworld-probe.sh (emit_path=native unchanged)
  • vendor/bin/phpunit --filter CompilerOperandChainNativeTest (CI)

Closes #1768

Made with Cursor

…r link (#1768)

PHP CFG lowering of unwrapOperandChain/operandsChainEqual fails LLVM 9 module
verify on compile_driver.php bundles. Route M3 compile-driver symbols through
CompilerOperandChainNative instead and add bootstrap-selfhost-compile-driver-link
probe gate.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit 12240c9 into master May 26, 2026
@PurHur PurHur deleted the agent/issue-1768-compile-driver-link branch May 26, 2026 23:54
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.

Self-host M3: compile-driver real lowering symbol batch tracker

1 participant