From: Sergey Bronnikov via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Sergey Kaplun <skaplun@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH luajit 4/4] Fix last commit.
Date: Tue, 14 Jan 2025 17:15:50 +0300 [thread overview]
Message-ID: <c087b112-7204-4c7f-b581-417ece4e2d48@tarantool.org> (raw)
In-Reply-To: <21c87151ad7c919b12f90d8590697e190f6b5e0c.1736509260.git.skaplun@tarantool.org>
[-- Attachment #1: Type: text/plain, Size: 1227 bytes --]
Hi, Sergey!
thanks for the patch! LGTM
On 10.01.2025 16:07, Sergey Kaplun wrote:
> From: Mike Pall <mike>
>
> (cherry picked from commit 43d0a19158ceabaa51b0462c1ebc97612b420a2e)
>
> The previous commit accidentally removes the check that fusing
> optimization isn't performing across the call to the `table.clear()`.
> This commit fixes the behaviour by adding the corresponding check that
> depends on the first bit of `check` masks in the `noconflict()` routine.
>
> Sergey Kaplun:
> * added the description for the problem
>
> Part of tarantool/tarantool#10709
> ---
> src/lj_asm_x86.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/lj_asm_x86.h b/src/lj_asm_x86.h
> index d77087d6..a96bc2e7 100644
> --- a/src/lj_asm_x86.h
> +++ b/src/lj_asm_x86.h
> @@ -118,7 +118,7 @@ static int noconflict(ASMState *as, IRRef ref, IROp conflict, int check)
> while (--i > ref) {
> if (ir[i].o == conflict)
> return 0; /* Conflict found. */
> - else if ((check & 1) && ir[i].o == IR_NEWREF)
> + else if ((check & 1) && (ir[i].o == IR_NEWREF || ir[i].o == IR_CALLS))
> return 0;
> else if ((check & 2) && (ir[i].op1 == ref || ir[i].op2 == ref))
> return 0;
[-- Attachment #2: Type: text/html, Size: 1704 bytes --]
prev parent reply other threads:[~2025-01-14 14:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-10 13:07 [Tarantool-patches] [PATCH luajit 0/4] Fixes for load fusing optimization Sergey Kaplun via Tarantool-patches
2025-01-10 13:07 ` [Tarantool-patches] [PATCH luajit 1/4] x86/x64: Don't fuse loads across table.clear Sergey Kaplun via Tarantool-patches
2025-01-14 14:10 ` Sergey Bronnikov via Tarantool-patches
2025-01-10 13:07 ` [Tarantool-patches] [PATCH luajit 2/4] Improve last commit Sergey Kaplun via Tarantool-patches
2025-01-14 14:11 ` Sergey Bronnikov via Tarantool-patches
2025-01-10 13:07 ` [Tarantool-patches] [PATCH luajit 3/4] x86/x64: Don't fuse loads across IR_NEWREF Sergey Kaplun via Tarantool-patches
2025-01-14 14:15 ` Sergey Bronnikov via Tarantool-patches
2025-01-10 13:07 ` [Tarantool-patches] [PATCH luajit 4/4] Fix last commit Sergey Kaplun via Tarantool-patches
2025-01-14 14:15 ` Sergey Bronnikov via Tarantool-patches [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c087b112-7204-4c7f-b581-417ece4e2d48@tarantool.org \
--to=tarantool-patches@dev.tarantool.org \
--cc=sergeyb@tarantool.org \
--cc=skaplun@tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH luajit 4/4] Fix last commit.' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox