Skip to content

Commit 6d037fe

Browse files
committed
Revert "llvm: workaround crashes in llvm loop optimizations"
This reverts commit b4fd57a. llvm/llvm-project#149743
1 parent 46d2c57 commit 6d037fe

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
@@ -6410,9 +6410,6 @@ pub const FuncGen = struct {
64106410
// * https://github.com/llvm/llvm-project/blob/56905dab7da50bccfcceaeb496b206ff476127e1/llvm/test/MC/WebAssembly/blockaddress.ll
64116411
if (zcu.comp.getTarget().cpu.arch.isWasm()) break :jmp_table null;
64126412

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

0 commit comments

Comments
 (0)