authorgravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2024-03-17 16:26:28+01:00
committergravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2024-03-17 16:26:28+01:00
log79b868d504f2b9c583a84c784a2f6197ac91bc25
treec40f12a495421caf73377cf1b3caf2e455a3a68d
parentb20cee586c6bd1cbc0c5364e8ebe5ae7ecf0ca1f

LLVM: Use fast math when requested


1 files changed, 5 insertions(+), 5 deletions(-)

src/codegen/llvm/Builder.zig+5-5
......@@ -14727,7 +14727,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
1472714727 .@"notail call fast" => .{ .no_tail = true, .call_conv = call_conv },
1472814728 else => unreachable,
1472914729 },
14730 .fast_math = .{},
14730 .fast_math = FastMath.fast,
1473114731 .type_id = extra.data.ty,
1473214732 .callee = extra.data.callee,
1473314733 .args = args,
......@@ -14786,7 +14786,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
1478614786 .opcode = kind.toBinaryOpcode(),
1478714787 .lhs = adapter.getOffsetValueIndex(extra.lhs),
1478814788 .rhs = adapter.getOffsetValueIndex(extra.rhs),
14789 .fast_math = .{},
14789 .fast_math = FastMath.fast,
1479014790 });
1479114791 },
1479214792 .alloca,
......@@ -14884,7 +14884,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
1488414884 .lhs = adapter.getOffsetValueIndex(extra.lhs),
1488514885 .rhs = adapter.getOffsetValueIndex(extra.rhs),
1488614886 .pred = kind.toCmpPredicate(),
14887 .fast_math = .{},
14887 .fast_math = FastMath.fast,
1488814888 });
1488914889 },
1489014890 .fneg => try function_block.writeAbbrev(FunctionBlock.FNeg{
......@@ -14892,7 +14892,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
1489214892 }),
1489314893 .@"fneg fast" => try function_block.writeAbbrev(FunctionBlock.FNegFast{
1489414894 .val = adapter.getOffsetValueIndex(@enumFromInt(datas[instr_index])),
14895 .fast_math = .{},
14895 .fast_math = FastMath.fast,
1489614896 }),
1489714897 .extractvalue => {
1489814898 var extra = func.extraDataTrail(Function.Instruction.ExtractValue, datas[instr_index]);
......@@ -14940,7 +14940,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
1494014940 .lhs = adapter.getOffsetValueIndex(extra.lhs),
1494114941 .rhs = adapter.getOffsetValueIndex(extra.rhs),
1494214942 .cond = adapter.getOffsetValueIndex(extra.cond),
14943 .fast_math = .{},
14943 .fast_math = FastMath.fast,
1494414944 });
1494514945 },
1494614946 .shufflevector => {