0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/src/zig_llvm.cpp
Matthew Lugg 032319c942 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.
2026-03-18 00:56:56 +01:00

535 lines
19 KiB