Repository navigation
Upgrade halide-llvm to 24.0.0.dev122887+gc01eb67c - #9718
Merged
Merged
Conversation
Upstream LLVM commit d8cdd9b226 (PR #243316) moved StringTableBuilder::add inline and added #include "llvm/BinaryFormat/COFF.h" to StringTableBuilder.h, which is transitively included by LLVM_Headers.h via BitcodeWriter.h. When <windows.h> is included first, macros in <winnt.h> (such as IMAGE_FILE_MACHINE_UNKNOWN) collide with enum declarations in llvm/BinaryFormat/COFF.h. Move the <windows.h> block after LLVM_Headers.h, matching LLVM_Output.cpp.
In LLVM 24, cl::ParseCommandLineOptions no longer recognizes library options declared in TableGen (such as MachineScheduler's -misched-regpressure, migrated in upstream PR #244327). Parse HL_LLVM_ARGS via cl::parseCommandLineOptions into a shared LibraryOptionsContext, assign it to LLVMContexts used for compilation, and attach it to TargetOptions::MCOptions::LibraryOptions (replaying it after -aarch64-use-featcpa-codegen=true for arm64e_x1 modules).
Upstream LLVM PR #234342 removed AArch64TargetLowering's IR-level lowerDeinterleaveIntrinsicToLoad(), relying on post-legalize SelectionDAG combining for multi-vector SVE deinterleaves. Under a fixed vscale_range (such as vector_bits_128), type legalization folds split load offsets to fixed constants, causing areNonVolatileConsecutiveLoads() to fail when comparing against scalable byte offsets and falling back to ldp + uzp1/uzp2. Slice interleaved loads to native_vector_bits() / op->type.bits() for SVE as well as NEON on LLVM 24+ so each chunk matches the pre-legalize performVectorDeinterleaveCombine() directly.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9718 +/- ##
==========================================
+ Coverage 73.26% 73.29% +0.02%
==========================================
Files 266 266
Lines 83748 83749 +1
Branches 20573 20573
==========================================
+ Hits 61359 61383 +24
- Misses 15821 15845 +24
+ Partials 6568 6521 -47 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
alexreinking
approved these changes
Nov 24, 2026
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.
Automated upgrade via
uv lock -P halide-llvm.