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 fa03fd5248
commit 7ca4489fdc
+1 -2
View File
@@ -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),