Self-host M3: native operand-chain helpers fix compile_driver link (#1768)#2614
Merged
Conversation
…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>
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
Compiler::unwrapOperandChainandoperandsChainEqualwithJIT\CompilerOperandChainNativeon the M3 compile-driver path (LLVM 9 module verify: "Instruction does not dominate all uses").make bootstrap-selfhost-compile-driver-linkprobe socompiler_helloworld_smoke/compile_driver.phplinks withPHP_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