From 171e6c7aa7783efbd680f9d8ab9a28a115abff5d Mon Sep 17 00:00:00 2001 From: r00ster91 Date: Fri, 16 Dec 2022 00:41:30 +0100 Subject: [PATCH] compiler_rt: remove workaround for past LLVM optimizer bug --- lib/compiler_rt/mulo.zig | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/compiler_rt/mulo.zig b/lib/compiler_rt/mulo.zig index 8347a1fbe8..cd2d127c34 100644 --- a/lib/compiler_rt/mulo.zig +++ b/lib/compiler_rt/mulo.zig @@ -65,15 +65,6 @@ pub fn __mulodi4(a: i64, b: i64, overflow: *c_int) callconv(.C) i64 { } pub fn __muloti4(a: i128, b: i128, overflow: *c_int) callconv(.C) i128 { - switch (builtin.zig_backend) { - .stage1, .stage2_llvm => { - // Workaround for https://github.com/llvm/llvm-project/issues/56403 - // When we call the genericSmall implementation instead, LLVM optimizer - // optimizes __muloti4 to a call to itself. - return muloXi4_genericFast(i128, a, b, overflow); - }, - else => {}, - } if (2 * @bitSizeOf(i128) <= @bitSizeOf(usize)) { return muloXi4_genericFast(i128, a, b, overflow); } else {