From: Richard Henderson <richard.henderson@linaro.org>
To: Michael Tokarev <mjt@tls.msk.ru>, qemu-devel@nongnu.org
Cc: qemu-stable@nongnu.org
Subject: Re: [PULL 29/29] tcg: Fix constant propagation in tcg_reg_alloc_dup
Date: Tue, 1 Jul 2025 13:58:45 -0600 [thread overview]
Message-ID: <f4d24737-87c7-4ebe-9bf8-3d5f314589f1@linaro.org> (raw)
In-Reply-To: <584130b7-2583-44ce-8501-d5a73583e911@tls.msk.ru>
On 7/1/25 13:04, Michael Tokarev wrote:
> On 30.06.2025 18:28, Richard Henderson wrote:
>> The scalar constant must be replicated for dup.
>>
>> Cc: qemu-stable@nongnu.org
>> Fixes: bab1671f0fa ("tcg: Manually expand INDEX_op_dup_vec")
>> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3002
>> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
>> ---
>> tcg/tcg.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/tcg/tcg.c b/tcg/tcg.c
>> index d714ae2889..50d40b9cbe 100644
>> --- a/tcg/tcg.c
>> +++ b/tcg/tcg.c
>> @@ -5154,7 +5154,7 @@ static void tcg_reg_alloc_dup(TCGContext *s, const TCGOp *op)
>> if (its->val_type == TEMP_VAL_CONST) {
>> /* Propagate constant via movi -> dupi. */
>> - tcg_target_ulong val = its->val;
>> + tcg_target_ulong val = dup_const(vece, its->val);
>> if (IS_DEAD_ARG(1)) {
>> temp_dead(s, its);
>> }
>
> Hi Richard!
>
> Does this apply to 7.2.x series, where temps had to be freed
> explicitly?
Yep.
r~
next prev parent reply other threads:[~2025-07-01 20:00 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-30 15:28 [PULL 00/29] tcg patch queue Richard Henderson
2025-06-30 15:28 ` [PULL 01/29] tcg/optimize: Introduce arg_const_val Richard Henderson
2025-06-30 15:28 ` [PULL 02/29] tcg/optimize: Add one's mask to TempOptInfo Richard Henderson
2025-06-30 15:28 ` [PULL 03/29] tcg/optimize: Introduce fold_masks_zosa Richard Henderson
2025-06-30 15:28 ` [PULL 04/29] tcg/optimize: Build and use o_bits in fold_and Richard Henderson
2025-06-30 15:28 ` [PULL 05/29] tcg/optimize: Build and use o_bits in fold_andc Richard Henderson
2025-06-30 15:28 ` [PULL 06/29] tcg/optimize: Build and use z_bits and o_bits in fold_eqv Richard Henderson
2025-06-30 15:28 ` [PULL 07/29] tcg/optimize: Build and use z_bits and o_bits in fold_nand Richard Henderson
2025-06-30 15:28 ` [PULL 08/29] tcg/optimize: Build and use z_bits and o_bits in fold_nor Richard Henderson
2025-06-30 15:28 ` [PULL 09/29] tcg/optimize: Build and use z_bits and o_bits in fold_not Richard Henderson
2025-06-30 15:28 ` [PULL 10/29] tcg/optimize: Build and use one and affected bits in fold_or Richard Henderson
2025-06-30 15:28 ` [PULL 11/29] tcg/optimize: Build and use zero, one and affected bits in fold_orc Richard Henderson
2025-06-30 15:28 ` [PULL 12/29] tcg/optimize: Build and use o_bits in fold_xor Richard Henderson
2025-06-30 15:28 ` [PULL 13/29] tcg/optimize: Build and use o_bits in fold_bswap Richard Henderson
2025-06-30 15:28 ` [PULL 14/29] tcg/optimize: Build and use o_bits in fold_deposit Richard Henderson
2025-06-30 15:28 ` [PULL 15/29] tcg/optimize: Build and use o_bits in fold_extract Richard Henderson
2025-06-30 15:28 ` [PULL 16/29] tcg/optimize: Build and use z_bits and o_bits in fold_extract2 Richard Henderson
2025-06-30 15:28 ` [PULL 17/29] tcg/optimize: Build and use o_bits in fold_exts Richard Henderson
2025-06-30 15:28 ` [PULL 18/29] tcg/optimize: Build and use o_bits in fold_extu Richard Henderson
2025-06-30 15:28 ` [PULL 19/29] tcg/optimize: Build and use o_bits in fold_movcond Richard Henderson
2025-06-30 15:28 ` [PULL 20/29] tcg/optimize: Build and use o_bits in fold_sextract Richard Henderson
2025-06-30 15:28 ` [PULL 21/29] tcg/optimize: Build and use o_bits in fold_shift Richard Henderson
2025-06-30 15:28 ` [PULL 22/29] tcg/optimize: Use fold_and in do_constant_folding_cond[12] Richard Henderson
2025-06-30 15:28 ` [PULL 23/29] tcg/optimize: Fold and to extract during optimize Richard Henderson
2025-06-30 15:28 ` [PULL 24/29] tcg/optimize: Simplify fold_and constant checks Richard Henderson
2025-06-30 15:28 ` [PULL 25/29] tcg/optimize: Simplify fold_andc " Richard Henderson
2025-06-30 15:28 ` [PULL 26/29] tcg/optimize: Simplify fold_orc " Richard Henderson
2025-06-30 15:28 ` [PULL 27/29] tcg/optimize: Simplify fold_eqv " Richard Henderson
2025-06-30 15:28 ` [PULL 28/29] tcg/riscv: Fix typo in tgen_extract Richard Henderson
2025-06-30 15:28 ` [PULL 29/29] tcg: Fix constant propagation in tcg_reg_alloc_dup Richard Henderson
2025-07-01 19:04 ` Michael Tokarev
2025-07-01 19:58 ` Richard Henderson [this message]
2025-07-01 11:22 ` [PULL 00/29] tcg patch queue Stefan Hajnoczi
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=f4d24737-87c7-4ebe-9bf8-3d5f314589f1@linaro.org \
--to=richard.henderson@linaro.org \
--cc=mjt@tls.msk.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).