From 18bdfb42033051fd5f43c587c5509d4e7b5fbd27 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 6 Jun 2023 23:55:15 +0300 Subject: [PATCH] Bettter code scheduling --- ir_x86.dasc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ir_x86.dasc b/ir_x86.dasc index 43b66d2..7967717 100644 --- a/ir_x86.dasc +++ b/ir_x86.dasc @@ -6793,17 +6793,19 @@ static bool ir_emit_guard(ir_ctx *ctx, uint32_t b, ir_ref def, ir_insn *insn) } else { |.if X64 if (insn->op == IR_GUARD) { - | jne >1 - } else { | je >1 + } else { + | jne >1 } + |.cold_code + |1: if (IR_IS_SIGNED_32BIT(addr)) { | mov rax, ((ptrdiff_t)addr) // 0x48 0xc7 0xc0 } else { | mov64 rax, ((ptrdiff_t)addr) // 0x48 0xb8 } | jmp aword [rax] - |1: + |.code |.endif return 0; }