From 061c13f13b052bf40d30baae375a1abceeff63fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 20 Jan 2026 00:04:49 +0100 Subject: [PATCH] Revert "std.mem: work around LoongArch inline asm bug in doNotOptimizeAway()" This reverts commit e7f1624e6ea11bb30c779963f9fdfabd51902276. The bug was fixed in LLVM 22. --- lib/std/mem.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/std/mem.zig b/lib/std/mem.zig index 3d8f3a604e..04c47ae68c 100644 --- 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),