commit 061c13f13b052bf40d30baae375a1abceeff63fa (tree) parent 4eb8640213658185d2fb63b794560fc16d8707b6 Author: Alex Rønne Petersen <alex@alexrp.com> Date: Tue, 20 Jan 2026 00:04:49 +0100 Revert "std.mem: work around LoongArch inline asm bug in doNotOptimizeAway()" This reverts commit e7f1624e6ea11bb30c779963f9fdfabd51902276. The bug was fixed in LLVM 22. Diffstat:
| M | lib/std/mem.zig | | | 3 | +-- |
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/std/mem.zig b/lib/std/mem.zig @@ -4809,8 +4809,7 @@ pub fn doNotOptimizeAway(val: anytype) void { } else doNotOptimizeAway(&val); }, .float => { - // https://github.com/llvm/llvm-project/issues/159200 - if ((t.float.bits == 32 or t.float.bits == 64) and builtin.zig_backend != .stage2_c and !builtin.cpu.arch.isLoongArch()) { + if ((t.float.bits == 32 or t.float.bits == 64) and builtin.zig_backend != .stage2_c) { asm volatile ("" : : [_] "rm" (val),