| ... | @@ -6385,6 +6385,9 @@ pub const FuncGen = struct { | ... | @@ -6385,6 +6385,9 @@ pub const FuncGen = struct { |
| 6385 | // * https://github.com/llvm/llvm-project/blob/56905dab7da50bccfcceaeb496b206ff476127e1/llvm/test/MC/WebAssembly/blockaddress.ll | 6385 | // * https://github.com/llvm/llvm-project/blob/56905dab7da50bccfcceaeb496b206ff476127e1/llvm/test/MC/WebAssembly/blockaddress.ll |
| 6386 | if (zcu.comp.getTarget().cpu.arch.isWasm()) break :jmp_table null; | 6386 | if (zcu.comp.getTarget().cpu.arch.isWasm()) break :jmp_table null; |
| 6387 | | 6387 | |
| | 6388 | // Workaround for https://github.com/ziglang/zig/issues/24383: |
| | 6389 | if (self.ng.ownerModule().optimize_mode == .ReleaseSafe) break :jmp_table null; |
| | 6390 | |
| 6388 | // On a 64-bit target, 1024 pointers in our jump table is about 8K of pointers. This seems just | 6391 | // On a 64-bit target, 1024 pointers in our jump table is about 8K of pointers. This seems just |
| 6389 | // about acceptable - it won't fill L1d cache on most CPUs. | 6392 | // about acceptable - it won't fill L1d cache on most CPUs. |
| 6390 | const max_table_len = 1024; | 6393 | const max_table_len = 1024; |