Skip to content

Commit 37da951

Browse files
committed
Revert "llvm: workaround crashes in llvm loop optimizations"
This reverts commit b4fd57a. llvm/llvm-project#149743
1 parent ab6d7c1 commit 37da951

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/codegen/llvm.zig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6411,9 +6411,6 @@ pub const FuncGen = struct {
64116411
// * https://github.com/llvm/llvm-project/blob/56905dab7da50bccfcceaeb496b206ff476127e1/llvm/test/MC/WebAssembly/blockaddress.ll
64126412
if (zcu.comp.getTarget().cpu.arch.isWasm()) break :jmp_table null;
64136413

6414-
// Workaround for https://github.com/ziglang/zig/issues/24383:
6415-
if (self.ng.ownerModule().optimize_mode == .ReleaseSafe) break :jmp_table null;
6416-
64176414
// On a 64-bit target, 1024 pointers in our jump table is about 8K of pointers. This seems just
64186415
// about acceptable - it won't fill L1d cache on most CPUs.
64196416
const max_table_len = 1024;

0 commit comments

Comments
 (0)