| ... | @@ -10885,12 +10885,12 @@ fn airRet(self: *Self, inst: Air.Inst.Index) !void { | ... | @@ -10885,12 +10885,12 @@ fn airRet(self: *Self, inst: Air.Inst.Index) !void { |
| 10885 | else => unreachable, | 10885 | else => unreachable, |
| 10886 | } | 10886 | } |
| 10887 | self.ret_mcv.liveOut(self, inst); | 10887 | self.ret_mcv.liveOut(self, inst); |
| | 10888 | try self.finishAir(inst, .unreach, .{ un_op, .none, .none }); |
| 10888 | | 10889 | |
| 10889 | // TODO optimization opportunity: figure out when we can emit this as a 2 byte instruction | 10890 | // TODO optimization opportunity: figure out when we can emit this as a 2 byte instruction |
| 10890 | // which is available if the jump is 127 bytes or less forward. | 10891 | // which is available if the jump is 127 bytes or less forward. |
| 10891 | const jmp_reloc = try self.asmJmpReloc(undefined); | 10892 | const jmp_reloc = try self.asmJmpReloc(undefined); |
| 10892 | try self.exitlude_jump_relocs.append(self.gpa, jmp_reloc); | 10893 | try self.exitlude_jump_relocs.append(self.gpa, jmp_reloc); |
| 10893 | return self.finishAir(inst, .unreach, .{ un_op, .none, .none }); | | |
| 10894 | } | 10894 | } |
| 10895 | | 10895 | |
| 10896 | fn airRetLoad(self: *Self, inst: Air.Inst.Index) !void { | 10896 | fn airRetLoad(self: *Self, inst: Air.Inst.Index) !void { |
| ... | @@ -10905,12 +10905,12 @@ fn airRetLoad(self: *Self, inst: Air.Inst.Index) !void { | ... | @@ -10905,12 +10905,12 @@ fn airRetLoad(self: *Self, inst: Air.Inst.Index) !void { |
| 10905 | else => unreachable, | 10905 | else => unreachable, |
| 10906 | } | 10906 | } |
| 10907 | self.ret_mcv.liveOut(self, inst); | 10907 | self.ret_mcv.liveOut(self, inst); |
| | 10908 | try self.finishAir(inst, .unreach, .{ un_op, .none, .none }); |
| 10908 | | 10909 | |
| 10909 | // TODO optimization opportunity: figure out when we can emit this as a 2 byte instruction | 10910 | // TODO optimization opportunity: figure out when we can emit this as a 2 byte instruction |
| 10910 | // which is available if the jump is 127 bytes or less forward. | 10911 | // which is available if the jump is 127 bytes or less forward. |
| 10911 | const jmp_reloc = try self.asmJmpReloc(undefined); | 10912 | const jmp_reloc = try self.asmJmpReloc(undefined); |
| 10912 | try self.exitlude_jump_relocs.append(self.gpa, jmp_reloc); | 10913 | try self.exitlude_jump_relocs.append(self.gpa, jmp_reloc); |
| 10913 | return self.finishAir(inst, .unreach, .{ un_op, .none, .none }); | | |
| 10914 | } | 10914 | } |
| 10915 | | 10915 | |
| 10916 | fn airCmp(self: *Self, inst: Air.Inst.Index, op: math.CompareOperator) !void { | 10916 | fn airCmp(self: *Self, inst: Air.Inst.Index, op: math.CompareOperator) !void { |