Revert "std.mem: work around LoongArch inline asm bug in doNotOptimizeAway()"

This reverts commit e7f1624e6e.

The bug was fixed in LLVM 22.
This commit is contained in:
Alex Rønne Petersen
2026-01-20 00:04:49 +01:00
parent 4eb8640213
commit 061c13f13b
+1 -2
View File
@@ -4809,8 +4809,7 @@ pub fn doNotOptimizeAway(val: anytype) void {
} else doNotOptimizeAway(&val); } else doNotOptimizeAway(&val);
}, },
.float => { .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) {
if ((t.float.bits == 32 or t.float.bits == 64) and builtin.zig_backend != .stage2_c and !builtin.cpu.arch.isLoongArch()) {
asm volatile ("" asm volatile (""
: :
: [_] "rm" (val), : [_] "rm" (val),