mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Revert "llvm: workaround crashes in llvm loop optimizations"
This reverts commit b4fd57a9c1.
https://github.com/llvm/llvm-project/pull/149743
This commit is contained in:
parent
907b5b73b4
commit
e351ee3b7f
1 changed files with 0 additions and 3 deletions
|
|
@ -6412,9 +6412,6 @@ pub const FuncGen = struct {
|
||||||
// * https://github.com/llvm/llvm-project/blob/56905dab7da50bccfcceaeb496b206ff476127e1/llvm/test/MC/WebAssembly/blockaddress.ll
|
// * https://github.com/llvm/llvm-project/blob/56905dab7da50bccfcceaeb496b206ff476127e1/llvm/test/MC/WebAssembly/blockaddress.ll
|
||||||
if (zcu.comp.getTarget().cpu.arch.isWasm()) break :jmp_table null;
|
if (zcu.comp.getTarget().cpu.arch.isWasm()) break :jmp_table null;
|
||||||
|
|
||||||
// Workaround for https://github.com/ziglang/zig/issues/24383:
|
|
||||||
if (self.ng.ownerModule().optimize_mode == .ReleaseSafe) break :jmp_table null;
|
|
||||||
|
|
||||||
// On a 64-bit target, 1024 pointers in our jump table is about 8K of pointers. This seems just
|
// On a 64-bit target, 1024 pointers in our jump table is about 8K of pointers. This seems just
|
||||||
// about acceptable - it won't fill L1d cache on most CPUs.
|
// about acceptable - it won't fill L1d cache on most CPUs.
|
||||||
const max_table_len = 1024;
|
const max_table_len = 1024;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue