Skip to content

Upgrade halide-llvm to 24.0.0.dev122887+gc01eb67c - #9718

Merged
alexreinking merged 4 commits into
mainfrom
automated/upgrade-halide-llvm
Nov 24, 2026
Merged

alexreinking merged 4 commits into
mainfrom
automated/upgrade-halide-llvm

Conversation

@halide-ci

@halide-ci halide-ci Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Automated upgrade via uv lock -P halide-llvm.

halide-ci Bot and others added 4 commits November 23, 2026 20:31
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

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.29%. Comparing base (120f1b4) to head (63ef94a).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@alexreinking
alexreinking merged commit 05113e0 into main Nov 24, 2026
28 checks passed
@halide-ci
halide-ci Bot deleted the automated/upgrade-halide-llvm branch November 24, 2026 06:23
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