mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
compiler_rt: remove workaround for past LLVM optimizer bug
This commit is contained in:
parent
41a7670a38
commit
171e6c7aa7
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user