From 013338f5f06e59f21ff4450195ab8a77b9cd38dc Mon Sep 17 00:00:00 2001 From: Brendan Hansknecht Date: Wed, 24 Jul 2024 11:39:23 -0700 Subject: [PATCH] remove always_tail (breaks wasm) and trust llvm to get it right (it does) --- crates/compiler/builtins/bitcode/src/sort.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/compiler/builtins/bitcode/src/sort.zig b/crates/compiler/builtins/bitcode/src/sort.zig index 3b7698321f..214f2d58ff 100644 --- a/crates/compiler/builtins/bitcode/src/sort.zig +++ b/crates/compiler/builtins/bitcode/src/sort.zig @@ -308,7 +308,7 @@ fn partial_forward_merge_right_tail_2( right_tail.* -= element_width; } if (@intFromPtr(right_tail.*) > @intFromPtr(right_head.*) + element_width) { - return @call(.always_tail, partial_forward_merge_right_tail_2, .{ dest, left_head, left_tail, right_head, right_tail, cmp_data, cmp, element_width, copy }); + return partial_forward_merge_right_tail_2(dest, left_head, left_tail, right_head, right_tail, cmp_data, cmp, element_width, copy); } return true; } @@ -319,7 +319,7 @@ fn partial_forward_merge_right_tail_2( left_tail.* -= element_width; } if (@intFromPtr(left_tail.*) > @intFromPtr(left_head.*) + element_width) { - return @call(.always_tail, partial_forward_merge_left_tail_2, .{ dest, left_head, left_tail, right_head, right_tail, cmp_data, cmp, element_width, copy }); + return partial_forward_merge_left_tail_2(dest, left_head, left_tail, right_head, right_tail, cmp_data, cmp, element_width, copy); } return true; } @@ -344,7 +344,7 @@ fn partial_forward_merge_left_tail_2( left_tail.* -= element_width; } if (@intFromPtr(left_tail.*) > @intFromPtr(left_head.*) + element_width) { - return @call(.always_tail, partial_forward_merge_left_tail_2, .{ dest, left_head, left_tail, right_head, right_tail, cmp_data, cmp, element_width, copy }); + return partial_forward_merge_left_tail_2(dest, left_head, left_tail, right_head, right_tail, cmp_data, cmp, element_width, copy); } return true; } @@ -355,7 +355,7 @@ fn partial_forward_merge_left_tail_2( right_tail.* -= element_width; } if (@intFromPtr(right_tail.*) > @intFromPtr(right_head.*) + element_width) { - return @call(.always_tail, partial_forward_merge_right_tail_2, .{ dest, left_head, left_tail, right_head, right_tail, cmp_data, cmp, element_width, copy }); + return partial_forward_merge_right_tail_2(dest, left_head, left_tail, right_head, right_tail, cmp_data, cmp, element_width, copy); } return true; }