Skip to content

Commit fe7a6a0

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

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

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

0 commit comments

Comments
 (0)