Skip to content

Comments

Upgrade halide-llvm to 23.0.0.dev82675+gf912679b#8959

Merged
alexreinking merged 4 commits intomainfrom
automated/upgrade-halide-llvm
Feb 24, 2026
Merged

Upgrade halide-llvm to 23.0.0.dev82675+gf912679b#8959
alexreinking merged 4 commits intomainfrom
automated/upgrade-halide-llvm

Conversation

@github-actions
Copy link
Contributor

Automated upgrade via uv lock -P halide-llvm.

@alexreinking
Copy link
Member

alexreinking commented Feb 22, 2026

Fixing isZeroValue uncovered another regression in correctness_cross_compilation:

Assertion failed: (!getTargetMachine().isPositionIndependent()), function checkTCRetEnoughRegs, file X86ISelDAGToDAG.cpp, line 3550.

Injected here: llvm/llvm-project#137643

PIC is meaningless on Windows. Position independence is handled by the
PE/COFF linker via base relocations, not by the compiler via GOT/PLT.
See: llvm/llvm-project#137643
@alexreinking alexreinking requested review from halidebuildbots and removed request for halidebuildbots February 22, 2026 16:57
@alexreinking
Copy link
Member

Might need to narrow the PIC change to win32. Investigating...

Comment on lines +5094 to +5102
// PIC is meaningless on 32-bit Windows. Position independence is handled
// by the PE/COFF linker via base relocations, not by the compiler via
// GOT/PLT. On 64-bit Windows, Reloc::PIC_ causes LLVM to emit RIP-relative
// addressing which avoids ADDR32 relocations that are incompatible
// with /LARGEADDRESSAWARE.
// See: https://github.com/llvm/llvm-project/pull/137643
if (target.os == Target::Windows && target.bits == 32) {
return false;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be reverted if/when llvm/llvm-project#182903 lands

@alexreinking
Copy link
Member

Only failure is due to the rotten V8 backend. Opened #8961 to fix it.

@alexreinking alexreinking requested a review from abadams February 24, 2026 17:16
@alexreinking alexreinking merged commit 9a46ff0 into main Feb 24, 2026
17 checks passed
@alexreinking alexreinking deleted the automated/upgrade-halide-llvm branch February 24, 2026 19:21
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.

3 participants