Fix LLVM optimization bug causing infinite build on Apple Silicon #403
+9
−1
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
-mllvm -disable-interleaved-load-combinecompiler flags tosetup_env.pyfor macOS ARM64 buildsInterleavedLoadCombineoptimization pass triggers infinite recursion on Apple Silicon when compiling BitNet's vector shuffle patterns, causing the build to hang indefinitelyDarwin + arm64only, so it does not affect x86, Linux, or Windows buildsRelated issues
Test plan
python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_son Apple Silicon Mac — verify build completes in minutes, not hoursFixes #294