libjit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible bug when optimizing function using branch_if / branch_if_no


From: Aleksey Demakov
Subject: Re: Possible bug when optimizing function using branch_if / branch_if_not
Date: Tue, 14 Jun 2022 07:53:51 +0300

Hi,

Thanks for the report. I will take a look one of these days.

Regards,
Aleksey

On Fri, Jun 10, 2022 at 3:54 PM Fabrice Leal <fabrice.leal.ch@gmail.com> wrote:
>
> I think i hit a possible bug in the_jit_block_clean_cfg(jit_function_t) 
> function.
>
> At http://git.savannah.gnu.org/cgit/libjit.git/tree/jit/jit-block.c#n948 
> opcode may be 126 (JIT_OP_BR_IFALSE) or 127 (JIT_OP_BR_ITRUE) and this call 
> will crash the function compilation 
> (http://git.savannah.gnu.org/cgit/libjit.git/tree/jit/jit-block.c#n821).
>
> For reference it is crashing with this function:
>
> https://pastebin.com/aHQ5mNLw
>
> but if i exchange .L0 and .L1 it works well:
>
> https://pastebin.com/L42fKbqg
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]