All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim MacArthur <jim.macarthur@linaro.org>
To: qemu-devel@nongnu.org
Cc: richard.henderson@linaro.org
Subject: Re: [PATCH 1/2] tcg/optimize: Fix fold_multiply2 vs 1
Date: Wed, 23 Sep 2026 11:38:52 +0100	[thread overview]
Message-ID: <arOsPDpJxK_eRaZE@linaro.org> (raw)
In-Reply-To: <20260915014115.1809286-2-richard.henderson@linaro.org>

On Mon, Sep 14, 2026 at 03:41:14PM -1000, Richard Henderson wrote:
> For muls2, we returned from fold_multiply2 without finish_folding
> or any other mechanism to update value tracking for the rh output.
> We might as well do this via fold_shift, which will also mark rh
> as having all copies of the sign bit.
> 
> For the movi paths of multiply vs 0 or mulu2, we're better off tail
> calling to tcg_opt_gen_movi rather than explicitly returning true.
> 
> Cc: qemu-stable@nongnu.org
> Fixes: c9349965ce4 ("tcg: Optimize INDEX_op_mul[us]2 for 0 and 1")
> Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4448
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>  tcg/optimize.c | 17 +++++++----------
>  1 file changed, 7 insertions(+), 10 deletions(-)
> 

Reviewed-by: Jim MacArthur <jim.macarthur@linaro.org>



  reply	other threads:[~2026-09-23 10:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-15  1:41 [PATCH 0/2] tcg/optimize: Fix fold_multiply2 vs 1 Richard Henderson
2026-09-15  1:41 ` [PATCH 1/2] " Richard Henderson
2026-09-23 10:38   ` Jim MacArthur [this message]
2026-09-15  1:41 ` [PATCH 2/2] tests/tcg/arm: Add regression test for #4448 Richard Henderson
2026-09-23 10:36   ` Jim MacArthur

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=arOsPDpJxK_eRaZE@linaro.org \
    --to=jim.macarthur@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.