zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 6f7840d589cd9abce1b8eb5be87288ba3d5ffc00 (tree)
parent 032319c94257e650abc7a4743298154c218dba89
Author: Matthew Lugg <mlugg@mlugg.co.uk>
Date:   Tue, 17 Mar 2026 09:22:04 +0000

llvm: disable loop vectorization for now

https://github.com/llvm/llvm-project/issues/186922 is pretty serious for
us, because it is causing the Zig compiler itself to get miscompiled in
many common configurations. I don't feel comfortable trying to work
around this by disabling certain CPU features, because that seems
incredibly brittle. I think it's probably best we disable loop
vectorization entirely until we upgrade to a version of LLVM where this
bug is fixed.

This will pessimise codegen in some cases, which is unfortunate, but
that's preferable to miscompilations.