Skip to content

Commit 8832772

Browse files
committed
compiler-rt: Apply never_inline to std.math.ldexp() call in bigIntFromFloat().
llvm/llvm-project#130408 This will probably be fixed with LLVM 20.1.1, so revert this commit by then.
1 parent 4fa1d3d commit 8832772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/compiler_rt/int_from_float.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub inline fn bigIntFromFloat(comptime signedness: std.builtin.Signedness, resul
7777
const exponent = @max(parts.exponent - significand_bits_adjusted_to_handle_smin, 0);
7878
const int: I = @intFromFloat(switch (exponent) {
7979
0 => a,
80-
else => math.ldexp(parts.significand, significand_bits_adjusted_to_handle_smin),
80+
else => @call(.never_inline, math.ldexp, .{ parts.significand, significand_bits_adjusted_to_handle_smin }), // https://github.com/llvm/llvm-project/issues/130408
8181
});
8282
switch (signedness) {
8383
.signed => {

0 commit comments

Comments
 (0)